summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
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
commitfbdba815508304e16288688514b8b749729db69d (patch)
tree82e9c1dc247884d7d5c5ab6b0dc650b29ada2197 /llvm/lib/CodeGen
parent17773fcd83ff8d23260d23706a0dd5fd08902b63 (diff)
downloadbcm5719-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.cpp2
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;
}
OpenPOWER on IntegriCloud