[Mlir-commits] [mlir] a0f344f - [mlir-tblgen] Remove `namespace {}` around OpDocGroup (#182721)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Sat Feb 21 20:37:03 PST 2026
Author: Vitaly Buka
Date: 2026-02-22T04:36:58Z
New Revision: a0f344f69d7eb5d87dd78c628a196a3a7440e792
URL: https://github.com/llvm/llvm-project/commit/a0f344f69d7eb5d87dd78c628a196a3a7440e792
DIFF: https://github.com/llvm/llvm-project/commit/a0f344f69d7eb5d87dd78c628a196a3a7440e792.diff
LOG: [mlir-tblgen] Remove `namespace {}` around OpDocGroup (#182721)
This is temporary workaround for Asan report #182720.
Added:
Modified:
mlir/tools/mlir-tblgen/OpDocGen.cpp
Removed:
################################################################################
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
More information about the Mlir-commits
mailing list