mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-02 00:36:36 +00:00
Fix a warning
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15409 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e0b531cc40
commit
bcdda01210
@ -50,6 +50,7 @@ X86InstrInfo::reverseBranchCondition(MachineBasicBlock::iterator MI) const {
|
||||
assert(isBranch(Opcode) && "MachineInstr must be a branch");
|
||||
unsigned ROpcode;
|
||||
switch (Opcode) {
|
||||
default: assert(0 && "Cannot reverse unconditional branches!");
|
||||
case X86::JB: ROpcode = X86::JAE; break;
|
||||
case X86::JAE: ROpcode = X86::JB; break;
|
||||
case X86::JE: ROpcode = X86::JNE; break;
|
||||
@ -62,8 +63,6 @@ X86InstrInfo::reverseBranchCondition(MachineBasicBlock::iterator MI) const {
|
||||
case X86::JGE: ROpcode = X86::JL; break;
|
||||
case X86::JLE: ROpcode = X86::JG; break;
|
||||
case X86::JG: ROpcode = X86::JLE; break;
|
||||
default:
|
||||
assert(0 && "Cannot reverse unconditional branches!");
|
||||
}
|
||||
MachineBasicBlock* MBB = MI->getParent();
|
||||
MachineBasicBlock* TMBB = MI->getOperand(0).getMachineBasicBlock();
|
||||
|
Loading…
Reference in New Issue
Block a user