forked from OSchip/llvm-project
Fix use of uninitialized variable.
Found by GCC's maybe-uninitialized. llvm-svn: 156780
This commit is contained in:
parent
e89f3fe3f3
commit
81a84bd841
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue