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) {
191
191
192
192
void Instruction::moveAfter (Instruction *MovePos) {
193
193
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
195
195
// list, but before NextIt's debug value range.
196
196
NextIt.setHeadBit (true );
197
197
moveBeforeImpl (*MovePos->getParent (), NextIt, false );
198
198
}
199
199
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
+
200
207
void Instruction::moveAfterPreserving (Instruction *MovePos) {
201
208
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
203
210
// in the instruction list, but before NextIt's debug value range.
204
211
NextIt.setHeadBit (true );
205
212
moveBeforeImpl (*MovePos->getParent (), NextIt, true );
You can’t perform that action at this time.
0 commit comments