[clang-tools-extra] [clang-tidy] Add llvm-mlir-use-after-erase check (PR #210727)

Zeyi Xu via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 24 05:48:32 PDT 2026


================
@@ -97,6 +97,15 @@ Improvements to clang-tidy
 New checks
 ^^^^^^^^^^
 
+- New :doc:`llvm-mlir-use-after-erase
+  <clang-tidy/checks/llvm/mlir-use-after-erase>` check.
+
+  Detects uses of an ``mlir::Operation`` after it has been erased, either
----------------
zeyi2 wrote:

Please synchronize with first statement in documentation.

https://github.com/llvm/llvm-project/pull/210727


More information about the cfe-commits mailing list