[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:
Simon Pilgrim 2017-02-18 22:50:28 +00:00
parent 7a87eebcad
commit b092166a76
1 changed files with 4 additions and 4 deletions

View File

@ -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.