[all-commits] [llvm/llvm-project] c33a47: [mlir][CSE] fix use-after-free (#203849)
Stefan Schuermans via All-commits
all-commits at lists.llvm.org
Mon Jun 15 04:20:42 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c33a47e6863b3294e693e540df8134a486eafef7
https://github.com/llvm/llvm-project/commit/c33a47e6863b3294e693e540df8134a486eafef7
Author: Stefan Schuermans <schuermans at roofline.ai>
Date: 2026-06-15 (Mon, 15 Jun 2026)
Changed paths:
M mlir/lib/Transforms/Utils/CSE.cpp
Log Message:
-----------
[mlir][CSE] fix use-after-free (#203849)
There was a use-after free introduced accidentally by e79e056ee982
[mlir][CSE] Remove the opsToErase container and immediately delete dead
ops. (#203702) This change fixes it by moving the copy of the location
(the "use") to before the deletion of the op (the "free").
Locating the use-after-free has been assisted by Claude Code. The
implementation of the fix has been done without it.
Signed-off-by: Stefan Schuermans <schuermans at roofline.ai>
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