================ @@ -224,11 +231,15 @@ class Instruction : public User, /// the basic block that MovePos lives in, right before MovePos. void moveBefore(Instruction *MovePos); + /// Unlink this instruction from its current basic block and insert it into + /// the basic block that MovePos lives in, right before MovePos. + void moveBefore(InstListType::iterator InsertPos); ---------------- OCHyams wrote:
```suggestion /// the basic block that MovePos lives in, right before MovePos. void moveBefore(InstListType::iterator MovePos); ``` https://github.com/llvm/llvm-project/pull/123583 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits