diff options
Diffstat (limited to 'lib/Target/ARM/ARMFastISel.cpp')
-rw-r--r-- | lib/Target/ARM/ARMFastISel.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Target/ARM/ARMFastISel.cpp b/lib/Target/ARM/ARMFastISel.cpp index 6e245c3281..cb9c8d5ed9 100644 --- a/lib/Target/ARM/ARMFastISel.cpp +++ b/lib/Target/ARM/ARMFastISel.cpp @@ -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; |