[llvm] [Instruction] Add missing implementation for `moveAfter(InstListType::iterator)` (PR #143093)

Jeremy Morse via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 6 02:27:37 PDT 2025


================
@@ -197,6 +197,13 @@ void Instruction::moveAfter(Instruction *MovePos) {
   moveBeforeImpl(*MovePos->getParent(), NextIt, false);
 }
 
+void Instruction::moveAfter(InstListType::iterator MovePos) {
+  // We want this instruction to be moved to before NextIt in the instruction
----------------
jmorse wrote:

```suggestion
  // We want this instruction to be moved to after NextIt in the instruction
```

https://github.com/llvm/llvm-project/pull/143093


More information about the llvm-commits mailing list