From 1c7907e896fa3da235aa97b50435bd61c94750b6 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 28 Oct 2002 20:11:17 +0000 Subject: [PATCH] Fix minor bug git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4355 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/SparcV9/SparcV9InstrSelection.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Target/SparcV9/SparcV9InstrSelection.cpp b/lib/Target/SparcV9/SparcV9InstrSelection.cpp index 15d03a64ad9..5afdea505cc 100644 --- a/lib/Target/SparcV9/SparcV9InstrSelection.cpp +++ b/lib/Target/SparcV9/SparcV9InstrSelection.cpp @@ -1240,10 +1240,10 @@ GetInstructionsByRule(InstructionNode* subtreeRoot, MachineCodeForInstruction::get(returnInstr).addTemp(returnReg); M = new MachineInstr(JMPLRET); - M->SetMachineOperandReg(0, MachineOperand::MO_VirtualRegister, - returnReg); + M->SetMachineOperandVal(0, MachineOperand::MO_VirtualRegister, + returnReg); M->SetMachineOperandConst(1,MachineOperand::MO_SignExtendedImmed, - (int64_t)8); + (int64_t)8); M->SetMachineOperandReg(2, target.getRegInfo().getZeroRegNum()); if (returnInstr->getReturnValue() != NULL)