[Mlir-commits] [mlir] 7082e15 - [mlir] Use has_value instead of hasValue (NFC)
Kazu Hirata
llvmlistbot at llvm.org
Fri Aug 12 19:19:34 PDT 2022
Author: Kazu Hirata
Date: 2022-08-12T19:19:23-07:00
New Revision: 7082e1506d409bf303c2e7be7f925662f4095758
URL: https://github.com/llvm/llvm-project/commit/7082e1506d409bf303c2e7be7f925662f4095758
DIFF: https://github.com/llvm/llvm-project/commit/7082e1506d409bf303c2e7be7f925662f4095758.diff
LOG: [mlir] Use has_value instead of hasValue (NFC)
Added:
Modified:
mlir/lib/Dialect/SPIRV/IR/SPIRVOps.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/SPIRV/IR/SPIRVOps.cpp b/mlir/lib/Dialect/SPIRV/IR/SPIRVOps.cpp
index eaa623f1cf44e..bf19ce83874e5 100644
--- a/mlir/lib/Dialect/SPIRV/IR/SPIRVOps.cpp
+++ b/mlir/lib/Dialect/SPIRV/IR/SPIRVOps.cpp
@@ -2241,7 +2241,7 @@ ParseResult spirv::FuncOp::parse(OpAsmParser &parser, OperationState &result) {
auto *body = result.addRegion();
OptionalParseResult parseResult =
parser.parseOptionalRegion(*body, entryArgs);
- return failure(parseResult.hasValue() && failed(*parseResult));
+ return failure(parseResult.has_value() && failed(*parseResult));
}
void spirv::FuncOp::print(OpAsmPrinter &printer) {
More information about the Mlir-commits
mailing list