From a6a7a1bae4e99f2a25f6c01ddc40c5c3b37b71f9 Mon Sep 17 00:00:00 2001 From: Mehdi Amini Date: Fri, 2 Jun 2023 14:07:56 -0700 Subject: [PATCH] Fully qualify MLIR type in TableGen emitter This is important for users that don't enclose their dialect within the MLIR namespace. --- mlir/tools/mlir-tblgen/AttrOrTypeDefGen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mlir/tools/mlir-tblgen/AttrOrTypeDefGen.cpp b/mlir/tools/mlir-tblgen/AttrOrTypeDefGen.cpp index a23975f..c1b4f2a 100644 --- a/mlir/tools/mlir-tblgen/AttrOrTypeDefGen.cpp +++ b/mlir/tools/mlir-tblgen/AttrOrTypeDefGen.cpp @@ -737,7 +737,7 @@ static const char *const dialectDynamicTypeParserDispatch = R"( if (parseResult.has_value()) { if (::mlir::succeeded(parseResult.getValue())) return genType; - return Type(); + return ::mlir::Type(); } } )"; -- 2.7.4