mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
Fix use of uninitialized variable.
Found by GCC's maybe-uninitialized. llvm-svn: 156780
This commit is contained in:
parent
a78f184a30
commit
434a602438
@ -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…
x
Reference in New Issue
Block a user