Fix an incorrect argument being passed to BuildMI for indirect calls.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20821 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Nate Begeman 2005-03-24 23:34:38 +00:00
parent 4da120e5d6
commit 7ca541b75a

View File

@ -1849,7 +1849,7 @@ void PPC32ISel::visitCallInst(CallInst &CI) {
unsigned Reg = getReg(CI.getCalledValue());
BuildMI(BB, PPC::OR, 2, PPC::R12).addReg(Reg).addReg(Reg);
BuildMI(BB, PPC::MTCTR, 1).addReg(PPC::R12);
TheCall = BuildMI(PPC::CALLindirect, 2).addZImm(20).addZImm(0)
TheCall = BuildMI(PPC::CALLindirect, 3).addZImm(20).addZImm(0)
.addReg(PPC::R12);
}