From a1fa8b1c88015b5deb09705f96c0a24535b3a695 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 4 Feb 2006 08:04:21 +0000 Subject: [PATCH] Fix a nasty typo that broke functions with big stack frames. llvm-svn: 25966 --- llvm/lib/Target/SparcV8/SparcV8RegisterInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Target/SparcV8/SparcV8RegisterInfo.cpp b/llvm/lib/Target/SparcV8/SparcV8RegisterInfo.cpp index abbf11f06b4e..a76111ab2548 100644 --- a/llvm/lib/Target/SparcV8/SparcV8RegisterInfo.cpp +++ b/llvm/lib/Target/SparcV8/SparcV8RegisterInfo.cpp @@ -145,7 +145,7 @@ SparcV8RegisterInfo::eliminateFrameIndex(MachineBasicBlock::iterator II) const { BuildMI(*MI.getParent(), II, V8::ADDrr, 2, V8::G1).addReg(V8::G1).addReg(V8::I6); // Insert: G1+%lo(offset) into the user. - MI.SetMachineOperandReg(i, V8::I1); + MI.SetMachineOperandReg(i, V8::G1); MI.SetMachineOperandConst(i+1, MachineOperand::MO_SignExtendedImmed, Offset & ((1 << 10)-1)); }