[all-commits] [llvm/llvm-project] 10b015: [flang][HLFIR] Fix use-after-free when rewriting u...
Krzysztof Parzyszek via All-commits
all-commits at lists.llvm.org
Fri Mar 8 05:20:42 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 10b01563da1d7c98d5fff6aa8b4a78be56a8099d
https://github.com/llvm/llvm-project/commit/10b01563da1d7c98d5fff6aa8b4a78be56a8099d
Author: Krzysztof Parzyszek <Krzysztof.Parzyszek at amd.com>
Date: 2024-03-08 (Fri, 08 Mar 2024)
Changed paths:
M flang/lib/Optimizer/HLFIR/IR/HLFIROps.cpp
Log Message:
-----------
[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.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list