mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
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:
parent
07ad63bee9
commit
8cfa427d9c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user