summaryrefslogtreecommitdiff
path: root/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2012-12-20 22:53:58 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2012-12-20 22:53:58 +0000
commit9500e5d07ac9b94c8fed74150e444778a0dcb036 (patch)
tree99fcd93f8023dd53be27cdf5226d781c49096852 /lib/CodeGen/MachineFunction.cpp
parentb9efafe54d61e85ca5209c4043aa814f89785195 (diff)
downloadllvm-9500e5d07ac9b94c8fed74150e444778a0dcb036.tar.gz
llvm-9500e5d07ac9b94c8fed74150e444778a0dcb036.tar.bz2
llvm-9500e5d07ac9b94c8fed74150e444778a0dcb036.tar.xz
Use two-arg addOperand(MF, MO) internally in MachineInstr when possible.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170796 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineFunction.cpp')
-rw-r--r--lib/CodeGen/MachineFunction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/MachineFunction.cpp b/lib/CodeGen/MachineFunction.cpp
index b0ccdba419..0bbacd02f0 100644
--- a/lib/CodeGen/MachineFunction.cpp
+++ b/lib/CodeGen/MachineFunction.cpp
@@ -158,7 +158,7 @@ MachineInstr *
MachineFunction::CreateMachineInstr(const MCInstrDesc &MCID,
DebugLoc DL, bool NoImp) {
return new (InstructionRecycler.Allocate<MachineInstr>(Allocator))
- MachineInstr(MCID, DL, NoImp);
+ MachineInstr(*this, MCID, DL, NoImp);
}
/// CloneMachineInstr - Create a new MachineInstr which is a copy of the