From 8cfa427d9c5a95c96658c033e0f348ffd23920f5 Mon Sep 17 00:00:00 2001 From: Nate Begeman Date: Fri, 13 Aug 2004 03:56:49 +0000 Subject: [PATCH] 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 --- lib/Target/PowerPC/PPC32ISelSimple.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Target/PowerPC/PPC32ISelSimple.cpp b/lib/Target/PowerPC/PPC32ISelSimple.cpp index c9157ef8bd4..f17515942d8 100644 --- a/lib/Target/PowerPC/PPC32ISelSimple.cpp +++ b/lib/Target/PowerPC/PPC32ISelSimple.cpp @@ -2797,7 +2797,7 @@ void ISel::emitCastOperation(MachineBasicBlock *MBB, unsigned TempReg2 = makeAnotherReg(DestTy); addFrameReference(BuildMI(*BB, IP, PPC::LBZ, 2, TempReg2), ValueFrameIdx, 7); - BuildMI(*MBB, IP, PPC::EXTSB, DestReg).addReg(TempReg2); + BuildMI(*BB, IP, PPC::EXTSB, 1, DestReg).addReg(TempReg2); } else { int offset = (DestClass == cShort) ? 6 : 4; unsigned LoadOp = (DestClass == cShort) ? PPC::LHA : PPC::LWZ;