[Mlir-commits] [mlir] 87a1421 - Fix MLIR build failure: error: no member named 'getValue' in 'mlir::OptionalParseResult'
Mehdi Amini
llvmlistbot at llvm.org
Sun Aug 20 14:08:06 PDT 2023
Author: Mehdi Amini
Date: 2023-08-20T13:27:10-07:00
New Revision: 87a14216cd4058154fe59a4031e6fb962ebf0462
URL: https://github.com/llvm/llvm-project/commit/87a14216cd4058154fe59a4031e6fb962ebf0462
DIFF: https://github.com/llvm/llvm-project/commit/87a14216cd4058154fe59a4031e6fb962ebf0462.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 Mlir-commits
mailing list