As suggested in D37121, here's a wrapper for removeFromParent() + insertAfter().
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/IR/Instruction.cpp | ||
---|---|---|
101 ↗ | (On Diff #112996) | I believe you can just use moveBefore(*MovePos->getParent(), ++MovePos->getIterator()); (Which should be a bit more efficient, and also will match the moveBefore code) |
Comment Actions
LGTM, I haven't done much work in this area but @dberlin's comment has been addressed and it looks like a straight forward NFC.