Cleanup. Get rid of extraneous variable.
authorBill Wendling <isanbard@gmail.com>
Sun, 3 Oct 2010 00:46:06 +0000 (00:46 +0000)
committerBill Wendling <isanbard@gmail.com>
Sun, 3 Oct 2010 00:46:06 +0000 (00:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115453 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/Instructions.cpp

index 95348d91f23113c59626832e84ee793cabee397c..57181e32e1f3e00e4b3bbf5a3ba29b4193234f21 100644 (file)
@@ -2459,10 +2459,9 @@ CastInst::getCastOpcode(
       assert(!"Casting pointer to other than pointer or int");
     }
   } else if (DestTy->isX86_MMXTy()) {
-    if (const VectorType *SrcPTy = dyn_cast<VectorType>(SrcTy)) {
-      assert(SrcPTy->getBitWidth()==64 &&
+    if (isa<VectorType>(SrcTy)) {
+      assert(cast<VectorType>(SrcTy)->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");