diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2012-08-15 02:37:07 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2012-08-15 02:37:07 +0000 |
commit | c2de3ddb23e45859f8b4ffdc21f796dc39703280 (patch) | |
tree | 454286a871fa2767539a77cafe7cb3e29a784c7f /lib/VMCore | |
parent | 11a4fa452305eeaeaaaf9c4fd83d043da081bd11 (diff) | |
download | external_llvm-c2de3ddb23e45859f8b4ffdc21f796dc39703280.zip external_llvm-c2de3ddb23e45859f8b4ffdc21f796dc39703280.tar.gz external_llvm-c2de3ddb23e45859f8b4ffdc21f796dc39703280.tar.bz2 |
Fix a typo that led to a failure to correctly verify bitcast instructions.
Patch by Stephen Hines!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161921 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/Verifier.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp index 6851246..38914b3 100644 --- a/lib/VMCore/Verifier.cpp +++ b/lib/VMCore/Verifier.cpp @@ -1093,7 +1093,7 @@ void Verifier::visitBitCastInst(BitCastInst &I) { // BitCast implies a no-op cast of type only. No bits change. // However, you can't cast pointers to anything but pointers. - Assert1(DestTy->isPointerTy() == DestTy->isPointerTy(), + Assert1(SrcTy->isPointerTy() == DestTy->isPointerTy(), "Bitcast requires both operands to be pointer or neither", &I); Assert1(SrcBitSize == DestBitSize, "Bitcast requires types of same width",&I); |