diff options
Diffstat (limited to 'mlir/lib/Dialect/LLVMIR/IR/LLVMTypeSyntax.cpp')
-rw-r--r-- | mlir/lib/Dialect/LLVMIR/IR/LLVMTypeSyntax.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Dialect/LLVMIR/IR/LLVMTypeSyntax.cpp b/mlir/lib/Dialect/LLVMIR/IR/LLVMTypeSyntax.cpp index e9121804a7d3..1702cd636d23 100644 --- a/mlir/lib/Dialect/LLVMIR/IR/LLVMTypeSyntax.cpp +++ b/mlir/lib/Dialect/LLVMIR/IR/LLVMTypeSyntax.cpp @@ -442,7 +442,7 @@ static Type dispatchParse(AsmParser &parser, bool allowAny = true) { Type type; OptionalParseResult result = parser.parseOptionalType(type); if (result.has_value()) { - if (failed(result.getValue())) + if (failed(result.value())) return nullptr; if (!allowAny) { parser.emitError(keyLoc) << "unexpected type, expected keyword"; |