[Mlir-commits] [mlir] [mlir-tblgen] Remove `namespace {}` around OpDocGroup (PR #182721)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Sat Feb 21 20:21:51 PST 2026
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-mlir-core
Author: Vitaly Buka (vitalybuka)
<details>
<summary>Changes</summary>
This is temporary workaround for Asan report #<!-- -->182720.
---
Full diff: https://github.com/llvm/llvm-project/pull/182721.diff
1 Files Affected:
- (modified) mlir/tools/mlir-tblgen/OpDocGen.cpp (+4-2)
``````````diff
diff --git a/mlir/tools/mlir-tblgen/OpDocGen.cpp b/mlir/tools/mlir-tblgen/OpDocGen.cpp
index 5e3cf302ed3ea..ac29225de44b1 100644
--- a/mlir/tools/mlir-tblgen/OpDocGen.cpp
+++ b/mlir/tools/mlir-tblgen/OpDocGen.cpp
@@ -110,7 +110,9 @@ static void emitNamedConstraint(const T &it, raw_ostream &os) {
// Records
//===----------------------------------------------------------------------===//
-namespace {
+// FIXME: Restore namespace {} when
+// https://github.com/llvm/llvm-project/issues/182720 fixed.
+// namespace {
struct OpDocGroup {
const Dialect &getDialect() const { return ops.front().getDialect(); }
@@ -139,7 +141,7 @@ struct DialectRecords {
std::vector<TypeDef> typeDefs;
std::vector<EnumInfo> enums;
};
-} // namespace
+// } // namespace
//===----------------------------------------------------------------------===//
// Operation Documentation
``````````
</details>
https://github.com/llvm/llvm-project/pull/182721
More information about the Mlir-commits
mailing list