Remove unnecessary set ahead of time.
authorEric Christopher <echristo@apple.com>
Wed, 29 Sep 2010 00:50:57 +0000 (00:50 +0000)
committerEric Christopher <echristo@apple.com>
Wed, 29 Sep 2010 00:50:57 +0000 (00:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115011 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMFastISel.cpp

index 6e245c32817d5457fadd97bcc0a6971b4aa74b19..cb9c8d5ed95dc77d10d0c4e123f4d1e37e0fb039 100644 (file)
@@ -784,12 +784,11 @@ bool ARMFastISel::SelectBranch(const Instruction *I) {
   unsigned CondReg = getRegForValue(Cond);
   if (CondReg == 0) return false;
 
-  ARMCC::CondCodes ARMPred = ARMCC::NE;
   CmpInst *CI = dyn_cast<CmpInst>(Cond);
   if (!CI) return false;
   
   // Get the compare predicate.
-  ARMPred = getComparePred(CI->getPredicate());
+  ARMCC::CondCodes ARMPred = getComparePred(CI->getPredicate());
     
   // We may not handle every CC for now.
   if (ARMPred == ARMCC::AL) return false;