[Mlir-commits] [mlir] [mlir-tblgen] Remove `namespace {}` around OpDocGroup (PR #182721)

Vitaly Buka llvmlistbot at llvm.org
Sat Feb 21 20:21:23 PST 2026


https://github.com/vitalybuka created https://github.com/llvm/llvm-project/pull/182721

This is temporary workaround for Asan report #182720.


>From e157537ef0c0717d4f5f8ad9e65261f5a09ab798 Mon Sep 17 00:00:00 2001
From: Vitaly Buka <vitalybuka at google.com>
Date: Sat, 21 Feb 2026 20:21:06 -0800
Subject: [PATCH] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20initia?=
 =?UTF-8?q?l=20version?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Created using spr 1.3.7
---
 mlir/tools/mlir-tblgen/OpDocGen.cpp | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

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