summaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG/InstrEmitter.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-07-10 13:55:45 +0000
committerDan Gohman <gohman@apple.com>2010-07-10 13:55:45 +0000
commit3cd26a2909cd5d002fe2742041a264ba217ba88e (patch)
treeb2e31612cc20fe3c08cfbdfcf36aed7fe8be256f /lib/CodeGen/SelectionDAG/InstrEmitter.cpp
parent68eec39bca280f98bef1256a5e89531ac1a77d1a (diff)
downloadllvm-3cd26a2909cd5d002fe2742041a264ba217ba88e.tar.gz
llvm-3cd26a2909cd5d002fe2742041a264ba217ba88e.tar.bz2
llvm-3cd26a2909cd5d002fe2742041a264ba217ba88e.tar.xz
Insert IMPLICIT_DEF instructions at the current insert position, not
at the end of the block. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108045 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/InstrEmitter.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/InstrEmitter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/InstrEmitter.cpp b/lib/CodeGen/SelectionDAG/InstrEmitter.cpp
index 40fb3a4698..f6679333a8 100644
--- a/lib/CodeGen/SelectionDAG/InstrEmitter.cpp
+++ b/lib/CodeGen/SelectionDAG/InstrEmitter.cpp
@@ -246,7 +246,7 @@ unsigned InstrEmitter::getVR(SDValue Op,
const TargetRegisterClass *RC = TLI->getRegClassFor(Op.getValueType());
VReg = MRI->createVirtualRegister(RC);
}
- BuildMI(MBB, Op.getDebugLoc(),
+ BuildMI(*MBB, InsertPos, Op.getDebugLoc(),
TII->get(TargetOpcode::IMPLICIT_DEF), VReg);
return VReg;
}