[AArch64] Fix enumeral/non-enumeral conditional expression warning.
gcc only allows you to mix enums / ints if they have the same signedness. llvm-svn: 295577
This commit is contained in:
parent
7a87eebcad
commit
b092166a76
|
@ -34,10 +34,10 @@ static bool shouldScheduleAdjacent(const AArch64InstrInfo &TII,
|
|||
const AArch64Subtarget &ST,
|
||||
const MachineInstr *First,
|
||||
const MachineInstr *Second) {
|
||||
unsigned FirstOpcode = First ?
|
||||
First->getOpcode() : AArch64::INSTRUCTION_LIST_END;
|
||||
unsigned SecondOpcode = Second ?
|
||||
Second->getOpcode() : AArch64::INSTRUCTION_LIST_END;
|
||||
unsigned FirstOpcode =
|
||||
First ? First->getOpcode() : (unsigned)AArch64::INSTRUCTION_LIST_END;
|
||||
unsigned SecondOpcode =
|
||||
Second ? Second->getOpcode() : (unsigned)AArch64::INSTRUCTION_LIST_END;
|
||||
|
||||
if (ST.hasArithmeticBccFusion())
|
||||
// Fuse CMN, CMP, TST followed by Bcc.
|
||||
|
|
Loading…
Reference in New Issue