commit | 9edb37feb5984b25494651ee4307fd2284d3538b | [log] [tgz] |
---|---|---|
author | Andrew Trick <atrick@apple.com> | Sun May 26 08:58:50 2013 +0000 |
committer | Andrew Trick <atrick@apple.com> | Sun May 26 08:58:50 2013 +0000 |
tree | e2a7165482404c52e7ede79c531792d579fee65e | |
parent | f0c74bda2e0487265fcaba542727259b82b7a941 [diff] [blame] |
Fix PR16143: Insert DEBUG_VALUE before terminator. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182717 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp b/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp index a5de9db..ad06473 100644 --- a/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp +++ b/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp
@@ -883,7 +883,7 @@ // Insert at the instruction, which may be in a different // block, if the block was split by a custom inserter. MachineBasicBlock::iterator Pos = MI; - MI->getParent()->insert(llvm::next(Pos), DbgMI); + MI->getParent()->insert(Pos, DbgMI); } } }