[Mlir-commits] [mlir] ad83164 - Revert "Fix MLIR build failure: error: no member named 'getValue' in 'mlir::OptionalParseResult'"

Mehdi Amini llvmlistbot at llvm.org
Sun Aug 20 13:22:40 PDT 2023


Author: Mehdi Amini
Date: 2023-08-20T13:22:26-07:00
New Revision: ad83164e6d049fe955618f50fbb38f302f8d1034

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

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

This reverts commit d151aa4a0fa26a795466f2171ef9aa29a4e9f131.

A bot is broken

Added: 
    

Modified: 
    mlir/tools/mlir-tblgen/AttrOrTypeDefGen.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/tools/mlir-tblgen/AttrOrTypeDefGen.cpp b/mlir/tools/mlir-tblgen/AttrOrTypeDefGen.cpp
index f6e43d42d29f06..943e323c6af405 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.value()))
+      if (::mlir::succeeded(parseResult.getValue()))
         return genType;
       return ::mlir::Type();
     }


        


More information about the Mlir-commits mailing list