aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp
diff options
context:
space:
mode:
authorJeremy Morse <jeremy.morse@sony.com>2025-01-23 17:06:04 +0000
committerJeremy Morse <jeremy.morse@sony.com>2025-01-27 20:30:45 +0000
commit285009f202ca8bfcc6b607eba0e919867559e725 (patch)
tree946f3501a8597d5130efe61e807910fb2bce43d5 /llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp
parenta85b2dc45a5f1312d6ee5e2522c24e81a086bf60 (diff)
downloadllvm-285009f202ca8bfcc6b607eba0e919867559e725.zip
llvm-285009f202ca8bfcc6b607eba0e919867559e725.tar.gz
llvm-285009f202ca8bfcc6b607eba0e919867559e725.tar.bz2
[NFC][DebugInfo] Rewrite more call-sites to insert with iterators (#124288)
As part of the "RemoveDIs" work to eliminate debug intrinsics, we're replacing methods that use Instruction*'s as positions with iterators. The call-sites updated in this patch are those where the dyn_cast_or_null cast utility doesn't compose well with iterator insertion. It can distinguish between nullptr and a "present" (non-null) Instruction pointer, but not between a legal and illegal instruction iterator. This can lead to end-iterator dereferences and thus crashes. We can improve this in the future (as parent-pointers can now be accessed from ilist nodes), but for the moment, add explicit tests for end() iterators at the five call sites affected by this.
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp')
0 files changed, 0 insertions, 0 deletions