1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-18 18:42:46 +02:00

Fix the build bot break introduced by r320791.

llvm-svn: 320798
This commit is contained in:
Nemanja Ivanovic 2017-12-15 09:51:34 +00:00
parent af453b57a3
commit de6e44ad7c

View File

@ -2217,8 +2217,13 @@ void PPCInstrInfo::replaceInstrWithLI(MachineInstr &MI,
MI.RemoveOperand(i);
// Replace the instruction.
if (LII.SetCR)
if (LII.SetCR) {
MI.setDesc(get(LII.Is64Bit ? PPC::ANDIo8 : PPC::ANDIo));
// Set the immediate.
MachineInstrBuilder(*MI.getParent()->getParent(), MI)
.addImm(LII.Imm).addReg(PPC::CR0, RegState::ImplicitDefine);
return;
}
else
MI.setDesc(get(LII.Is64Bit ? PPC::LI8 : PPC::LI));