aboutsummaryrefslogtreecommitdiff
path: root/mlir/lib/Dialect/SPIRV/IR/SPIRVOps.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mlir/lib/Dialect/SPIRV/IR/SPIRVOps.cpp')
-rw-r--r--mlir/lib/Dialect/SPIRV/IR/SPIRVOps.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Dialect/SPIRV/IR/SPIRVOps.cpp b/mlir/lib/Dialect/SPIRV/IR/SPIRVOps.cpp
index dae92ddaf821..5cb451fa46c1 100644
--- a/mlir/lib/Dialect/SPIRV/IR/SPIRVOps.cpp
+++ b/mlir/lib/Dialect/SPIRV/IR/SPIRVOps.cpp
@@ -2236,7 +2236,7 @@ ParseResult spirv::FuncOp::parse(OpAsmParser &parser, OperationState &state) {
// Parse the optional function body.
auto *body = state.addRegion();
OptionalParseResult result = parser.parseOptionalRegion(*body, entryArgs);
- return failure(result.hasValue() && failed(*result));
+ return failure(result.has_value() && failed(*result));
}
void spirv::FuncOp::print(OpAsmPrinter &printer) {