File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -191,15 +191,22 @@ void Instruction::moveBeforePreserving(BasicBlock::iterator MovePos) {
191191
192192void Instruction::moveAfter (Instruction *MovePos) {
193193 auto NextIt = std::next (MovePos->getIterator ());
194- // We want this instruction to be moved to before NextIt in the instruction
194+ // We want this instruction to be moved to after NextIt in the instruction
195195 // list, but before NextIt's debug value range.
196196 NextIt.setHeadBit (true );
197197 moveBeforeImpl (*MovePos->getParent (), NextIt, false );
198198}
199199
200+ void Instruction::moveAfter (InstListType::iterator MovePos) {
201+ // We want this instruction to be moved to after NextIt in the instruction
202+ // list, but before NextIt's debug value range.
203+ MovePos.setHeadBit (true );
204+ moveBeforeImpl (*MovePos->getParent (), MovePos, false );
205+ }
206+
200207void Instruction::moveAfterPreserving (Instruction *MovePos) {
201208 auto NextIt = std::next (MovePos->getIterator ());
202- // We want this instruction and its debug range to be moved to before NextIt
209+ // We want this instruction and its debug range to be moved to after NextIt
203210 // in the instruction list, but before NextIt's debug value range.
204211 NextIt.setHeadBit (true );
205212 moveBeforeImpl (*MovePos->getParent (), NextIt, true );
You can’t perform that action at this time.
0 commit comments