summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/Instructions.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2010-10-03 00:46:06 +0000
committerBill Wendling <isanbard@gmail.com>2010-10-03 00:46:06 +0000
commit3c7041788337bd000e257322d3fa130efd797b2c (patch)
tree00124d767bc388ba84e1bd36717a404d41fc77e5 /llvm/lib/VMCore/Instructions.cpp
parentaf25cfaae01ecd3317608a8305200d26722fb771 (diff)
downloadbcm5719-llvm-3c7041788337bd000e257322d3fa130efd797b2c.tar.gz
bcm5719-llvm-3c7041788337bd000e257322d3fa130efd797b2c.zip
Cleanup. Get rid of extraneous variable.
llvm-svn: 115453
Diffstat (limited to 'llvm/lib/VMCore/Instructions.cpp')
-rw-r--r--llvm/lib/VMCore/Instructions.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/VMCore/Instructions.cpp b/llvm/lib/VMCore/Instructions.cpp
index 95348d91f23..57181e32e1f 100644
--- a/llvm/lib/VMCore/Instructions.cpp
+++ b/llvm/lib/VMCore/Instructions.cpp
@@ -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");
OpenPOWER on IntegriCloud