diff options
author | Bill Wendling <isanbard@gmail.com> | 2010-10-03 00:46:06 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2010-10-03 00:46:06 +0000 |
commit | 3c7041788337bd000e257322d3fa130efd797b2c (patch) | |
tree | 00124d767bc388ba84e1bd36717a404d41fc77e5 /llvm/lib/VMCore/Instructions.cpp | |
parent | af25cfaae01ecd3317608a8305200d26722fb771 (diff) | |
download | bcm5719-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.cpp | 5 |
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"); |