Cleanup. Get rid of extraneous variable.

llvm-svn: 115453
This commit is contained in:
Bill Wendling 2010-10-03 00:46:06 +00:00
parent af25cfaae0
commit 3c70417883
1 changed files with 2 additions and 3 deletions

View 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");