diff options
author | Jeremy Morse <jeremy.morse@sony.com> | 2024-03-19 16:36:29 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-19 16:36:29 +0000 |
commit | b9d83eff254668385fd3d9d5ddb5af762f378d7f (patch) | |
tree | fa2871855343dcb93484267f2c9abda6561e8f7d /llvm/lib/Passes/PassBuilder.cpp | |
parent | c63a291c64852a086cb447c7078e5312aac1a05c (diff) | |
download | llvm-b9d83eff254668385fd3d9d5ddb5af762f378d7f.zip llvm-b9d83eff254668385fd3d9d5ddb5af762f378d7f.tar.gz llvm-b9d83eff254668385fd3d9d5ddb5af762f378d7f.tar.bz2 |
[NFC][RemoveDIs] Use iterators for insertion at various call-sites (#84736)
These are the last remaining "trivial" changes to passes that use
Instruction pointers for insertion. All of this should be NFC, it's just
changing the spelling of how we identify a position.
In one or two locations, I'm also switching uses of getNextNode etc to
using std::next with iterators. This too should be NFC.
---------
Merged by: Stephen Tozer <stephen.tozer@sony.com>
Diffstat (limited to 'llvm/lib/Passes/PassBuilder.cpp')
-rw-r--r-- | llvm/lib/Passes/PassBuilder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Passes/PassBuilder.cpp b/llvm/lib/Passes/PassBuilder.cpp index 0204730..9d98ae7 100644 --- a/llvm/lib/Passes/PassBuilder.cpp +++ b/llvm/lib/Passes/PassBuilder.cpp @@ -358,7 +358,7 @@ public: // Intentionally break the Function by inserting a terminator // instruction in the middle of a basic block. BasicBlock &BB = F.getEntryBlock(); - new UnreachableInst(F.getContext(), BB.getTerminator()); + new UnreachableInst(F.getContext(), BB.getTerminator()->getIterator()); return PreservedAnalyses::none(); } |