[llvm-branch-commits] [mlir] 67dca9d - Fix MLIR build failure: error: no member named 'getValue' in 'mlir::OptionalParseResult'

Tobias Hieta via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Aug 25 00:43:18 PDT 2023


Author: Mehdi Amini
Date: 2023-08-25T09:42:01+02:00
New Revision: 67dca9da75b2661d14a34067551ea71aaae19cf8

URL: https://github.com/llvm/llvm-project/commit/67dca9da75b2661d14a34067551ea71aaae19cf8
DIFF: https://github.com/llvm/llvm-project/commit/67dca9da75b2661d14a34067551ea71aaae19cf8.diff

LOG: Fix MLIR build failure: error: no member named 'getValue' in 'mlir::OptionalParseResult'

Fix #63072

Added: 
    

Modified: 
    mlir/test/mlir-tblgen/attr-or-type-format.td
    mlir/tools/mlir-tblgen/AttrOrTypeDefGen.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/test/mlir-tblgen/attr-or-type-format.td b/mlir/test/mlir-tblgen/attr-or-type-format.td
index 230fa90713f1a5..2782f55bc966ed 100644
--- a/mlir/test/mlir-tblgen/attr-or-type-format.td
+++ b/mlir/test/mlir-tblgen/attr-or-type-format.td
@@ -648,5 +648,5 @@ def TypeN : TestType<"TestP"> {
 // DEFAULT_TYPE_PARSER: TestDialect::parseType(::mlir::DialectAsmParser &parser)
 // DEFAULT_TYPE_PARSER: auto parseResult = parseOptionalDynamicType(mnemonic, parser, genType);
 // DEFAULT_TYPE_PARSER: if (parseResult.has_value()) {
-// DEFAULT_TYPE_PARSER:   if (::mlir::succeeded(parseResult.getValue()))
+// DEFAULT_TYPE_PARSER:   if (::mlir::succeeded(parseResult.value()))
 // DEFAULT_TYPE_PARSER:     return genType;
\ No newline at end of file

diff  --git a/mlir/tools/mlir-tblgen/AttrOrTypeDefGen.cpp b/mlir/tools/mlir-tblgen/AttrOrTypeDefGen.cpp
index 943e323c6af405..f6e43d42d29f06 100644
--- a/mlir/tools/mlir-tblgen/AttrOrTypeDefGen.cpp
+++ b/mlir/tools/mlir-tblgen/AttrOrTypeDefGen.cpp
@@ -763,7 +763,7 @@ static const char *const dialectDynamicTypeParserDispatch = R"(
   {
     auto parseResult = parseOptionalDynamicType(mnemonic, parser, genType);
     if (parseResult.has_value()) {
-      if (::mlir::succeeded(parseResult.getValue()))
+      if (::mlir::succeeded(parseResult.value()))
         return genType;
       return ::mlir::Type();
     }


        


More information about the llvm-branch-commits mailing list