mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-29 14:40:39 +00:00
Fix use of uninitialized variable.
Found by GCC's maybe-uninitialized. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156780 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6565a70970
commit
9cc178726f
@ -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
Block a user