[llvm-commits] [llvm] r115453 - /llvm/trunk/lib/VMCore/Instructions.cpp
Bill Wendling
isanbard at gmail.com
Sat Oct 2 17:46:06 PDT 2010
Author: void
Date: Sat Oct 2 19:46:06 2010
New Revision: 115453
URL: http://llvm.org/viewvc/llvm-project?rev=115453&view=rev
Log:
Cleanup. Get rid of extraneous variable.
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=115453&r1=115452&r2=115453&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Instructions.cpp (original)
+++ llvm/trunk/lib/VMCore/Instructions.cpp Sat Oct 2 19:46:06 2010
@@ -2459,10 +2459,9 @@
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");
More information about the llvm-commits
mailing list