[clang-tools-extra] [clang-tidy] Add llvm-mlir-use-after-erase check (PR #210727)
Oleksandr Alex Zinenko via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 24 05:50:18 PDT 2026
ftynse wrote:
I'm not really familiar with clang-tidy codebase so I can only post a support statement. This is valuable for MLIR and its users since such use-after-free errors are frequent in rewrite patterns and are usually annoying to reproduce: patterns are applied inside of a big set thereof and it's not always obvious which one is at fault. While normally use-after-free is caught by ASAN, there is a particularly egregious case where `RewriterBase::replaceOp` reuses the same pointer address for the operation, making it invisible to ASAN.
https://github.com/llvm/llvm-project/pull/210727
More information about the cfe-commits
mailing list