[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.
parent
912ea6e3
Please register or sign in to comment