diff options
author | Dan Gohman <gohman@apple.com> | 2010-07-10 13:55:45 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-07-10 13:55:45 +0000 |
commit | fbdba815508304e16288688514b8b749729db69d (patch) | |
tree | 82e9c1dc247884d7d5c5ab6b0dc650b29ada2197 /llvm/lib/CodeGen | |
parent | 17773fcd83ff8d23260d23706a0dd5fd08902b63 (diff) | |
download | bcm5719-llvm-fbdba815508304e16288688514b8b749729db69d.tar.gz bcm5719-llvm-fbdba815508304e16288688514b8b749729db69d.zip |
Insert IMPLICIT_DEF instructions at the current insert position, not
at the end of the block.
llvm-svn: 108045
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp b/llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp index 40fb3a46985..f6679333a8c 100644 --- a/llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp +++ b/llvm/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; } |