Fully qualify MLIR type in TableGen emitter
authorMehdi Amini <joker.eph@gmail.com>
Fri, 2 Jun 2023 21:07:56 +0000 (14:07 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Fri, 2 Jun 2023 21:07:56 +0000 (14:07 -0700)
This is important for users that don't enclose their dialect within the MLIR
namespace.

mlir/tools/mlir-tblgen/AttrOrTypeDefGen.cpp

index a23975f..c1b4f2a 100644 (file)
@@ -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();
     }
   }
 )";