[llvm-commits] [llvm] r115251 - /llvm/trunk/lib/VMCore/Instructions.cpp

Dale Johannesen dalej at apple.com
Thu Sep 30 17:21:24 PDT 2010


Author: johannes
Date: Thu Sep 30 19:21:24 2010
New Revision: 115251

URL: http://llvm.org/viewvc/llvm-project?rev=115251&view=rev
Log:
Attempt to outwit overly smart compiler.


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

Modified: llvm/trunk/lib/VMCore/Instructions.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Instructions.cpp?rev=115251&r1=115250&r2=115251&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Instructions.cpp (original)
+++ llvm/trunk/lib/VMCore/Instructions.cpp Thu Sep 30 19:21:24 2010
@@ -2462,6 +2462,7 @@
     if (const VectorType *SrcPTy = dyn_cast<VectorType>(SrcTy)) {
       assert(SrcPTy->getBitWidth()==64 &&
              "Casting vector of wrong width to X86_MMX");
+      SrcPTy = NULL;      // inhibit compiler warning
       return BitCast;                               // 64-bit vector to MMX
     } else {
       assert(!"Illegal cast to X86_MMX");





More information about the llvm-commits mailing list