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 | 11bfe3e5bf5a7c37a9f665ba5e825e00a8837f2c (patch) | |
tree | 24fbfa64de182328820b6a8992e1cac8a35c1bcb /lib/VMCore/Instructions.cpp | |
parent | 7330d9706984ea66ea71426c6943e5344ce59285 (diff) |
Cleanup. Get rid of extraneous variable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115453 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Instructions.cpp')
-rw-r--r-- | lib/VMCore/Instructions.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/VMCore/Instructions.cpp b/lib/VMCore/Instructions.cpp index 95348d91f2..57181e32e1 100644 --- a/lib/VMCore/Instructions.cpp +++ b/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"); |