diff options
Diffstat (limited to 'mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp')
-rw-r--r-- | mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp b/mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp index 7f3ba764c68a..825d6eac56c5 100644 --- a/mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp +++ b/mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp @@ -344,7 +344,7 @@ static ParseResult parseSwitchOpCases( if (values.empty() && !integerParseResult.has_value()) return success(); - if (!integerParseResult.has_value() || integerParseResult.getValue()) + if (!integerParseResult.has_value() || integerParseResult.value()) return failure(); values.push_back(APInt(bitWidth, value)); @@ -542,7 +542,7 @@ parseGEPIndices(OpAsmParser &parser, OptionalParseResult parsedInteger = parser.parseOptionalInteger(constantIndex); if (parsedInteger.has_value()) { - if (failed(parsedInteger.getValue())) + if (failed(parsedInteger.value())) return failure(); constantIndices.push_back(constantIndex); return success(); |