[llvm-commits] [llvm] r161921 - /llvm/trunk/lib/VMCore/Verifier.cpp

Nick Lewycky nicholas at mxc.ca
Tue Aug 14 19:37:07 PDT 2012


Author: nicholas
Date: Tue Aug 14 21:37:07 2012
New Revision: 161921

URL: http://llvm.org/viewvc/llvm-project?rev=161921&view=rev
Log:
Fix a typo that led to a failure to correctly verify bitcast instructions.
Patch by Stephen Hines!

Modified:
    llvm/trunk/lib/VMCore/Verifier.cpp

Modified: llvm/trunk/lib/VMCore/Verifier.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Verifier.cpp?rev=161921&r1=161920&r2=161921&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Verifier.cpp (original)
+++ llvm/trunk/lib/VMCore/Verifier.cpp Tue Aug 14 21:37:07 2012
@@ -1093,7 +1093,7 @@
 
   // 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);
 





More information about the llvm-commits mailing list