aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/ReachingDefAnalysis.cpp
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <Krzysztof.Parzyszek@amd.com>2024-03-08 07:20:20 -0600
committerGitHub <noreply@github.com>2024-03-08 07:20:20 -0600
commit10b01563da1d7c98d5fff6aa8b4a78be56a8099d (patch)
tree12e0ed04790144ee75778ffe794fcf855d38836e /llvm/lib/CodeGen/ReachingDefAnalysis.cpp
parent912ea6e335ca6174b3433fd960ed8b592794361b (diff)
downloadllvm-10b01563da1d7c98d5fff6aa8b4a78be56a8099d.zip
llvm-10b01563da1d7c98d5fff6aa8b4a78be56a8099d.tar.gz
llvm-10b01563da1d7c98d5fff6aa8b4a78be56a8099d.tar.bz2
[flang][HLFIR] Fix use-after-free when rewriting users in `canonicalize` (#84371)
Rewriting an op can invalidate the operator range being iterated on. Store the users in a separate list, and iterate over the list instead. This was detected by address sanitizer.
Diffstat (limited to 'llvm/lib/CodeGen/ReachingDefAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions