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

Devang Patel dpatel at apple.com
Tue Nov 4 17:37:40 PST 2008


Author: dpatel
Date: Tue Nov  4 19:37:40 2008
New Revision: 58743

URL: http://llvm.org/viewvc/llvm-project?rev=58743&view=rev
Log:
Silence unused variable warnings.

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=58743&r1=58742&r2=58743&view=diff

==============================================================================
--- llvm/trunk/lib/VMCore/Instructions.cpp (original)
+++ llvm/trunk/lib/VMCore/Instructions.cpp Tue Nov  4 19:37:40 2008
@@ -2172,6 +2172,7 @@
     } else if (const VectorType *PTy = dyn_cast<VectorType>(SrcTy)) {
       assert(DestBits == PTy->getBitWidth() &&
                "Casting vector to integer of different width");
+      PTy = NULL;
       return BitCast;                             // Same size, no-op cast
     } else {
       assert(isa<PointerType>(SrcTy) &&
@@ -2195,7 +2196,8 @@
     } else if (const VectorType *PTy = dyn_cast<VectorType>(SrcTy)) {
       assert(DestBits == PTy->getBitWidth() &&
              "Casting vector to floating point of different width");
-        return BitCast;                             // same size, no-op cast
+      PTy = NULL;
+      return BitCast;                             // same size, no-op cast
     } else {
       assert(0 && "Casting pointer or non-first class to float");
     }





More information about the llvm-commits mailing list