Fix use of uninitialized variable.

Found by GCC's maybe-uninitialized.

llvm-svn: 156780
This commit is contained in:
David Blaikie 2012-05-14 21:48:19 +00:00
parent e89f3fe3f3
commit 81a84bd841
1 changed files with 1 additions and 1 deletions

View File

@ -2024,7 +2024,7 @@ OptimizeCompareInstr(MachineInstr *CmpInstr, unsigned SrcReg, int CmpMask,
ARMCC::CondCodes CC = (ARMCC::CondCodes)OperandsToUpdate[i]->getImm();
ARMCC::CondCodes NewCC;
switch (CC) {
default: break;
default: llvm_unreachable("only expecting less/greater comparisons here");
case ARMCC::GE: NewCC = ARMCC::LE; break;
case ARMCC::LT: NewCC = ARMCC::GT; break;
case ARMCC::GT: NewCC = ARMCC::LT; break;