Fix llc crasher compiling siod by giving BuildMI the correct number of arguments

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15719 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Nate Begeman 2004-08-13 03:56:49 +00:00
parent 07ad63bee9
commit 8cfa427d9c

View File

@ -2797,7 +2797,7 @@ void ISel::emitCastOperation(MachineBasicBlock *MBB,
unsigned TempReg2 = makeAnotherReg(DestTy); unsigned TempReg2 = makeAnotherReg(DestTy);
addFrameReference(BuildMI(*BB, IP, PPC::LBZ, 2, TempReg2), addFrameReference(BuildMI(*BB, IP, PPC::LBZ, 2, TempReg2),
ValueFrameIdx, 7); ValueFrameIdx, 7);
BuildMI(*MBB, IP, PPC::EXTSB, DestReg).addReg(TempReg2); BuildMI(*BB, IP, PPC::EXTSB, 1, DestReg).addReg(TempReg2);
} else { } else {
int offset = (DestClass == cShort) ? 6 : 4; int offset = (DestClass == cShort) ? 6 : 4;
unsigned LoadOp = (DestClass == cShort) ? PPC::LHA : PPC::LWZ; unsigned LoadOp = (DestClass == cShort) ? PPC::LHA : PPC::LWZ;