Attempt to outwit overly smart compiler.

llvm-svn: 115251
This commit is contained in:
Dale Johannesen 2010-10-01 00:21:24 +00:00
parent c6f17f7420
commit dec83c3fd9
1 changed files with 1 additions and 0 deletions

View File

@ -2462,6 +2462,7 @@ CastInst::getCastOpcode(
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");