diff options
author | Nate Begeman <natebegeman@mac.com> | 2004-08-13 03:56:49 +0000 |
---|---|---|
committer | Nate Begeman <natebegeman@mac.com> | 2004-08-13 03:56:49 +0000 |
commit | 2f1d849271716599f9f264740c591936df3f5278 (patch) | |
tree | aad5dcb2a72277342127206892a3659dfa8f24ef /llvm/lib | |
parent | 43a080e65bf88caa0a27116fe43a04c7ce6725c8 (diff) | |
download | bcm5719-llvm-2f1d849271716599f9f264740c591936df3f5278.tar.gz bcm5719-llvm-2f1d849271716599f9f264740c591936df3f5278.zip |
Fix llc crasher compiling siod by giving BuildMI the correct number of arguments
llvm-svn: 15719
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPC32ISelSimple.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPC32ISelSimple.cpp b/llvm/lib/Target/PowerPC/PPC32ISelSimple.cpp index c9157ef8bd4..f17515942d8 100644 --- a/llvm/lib/Target/PowerPC/PPC32ISelSimple.cpp +++ b/llvm/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; |