[mlir] Use has_value instead of hasValue (NFC)

This commit is contained in:
Kazu Hirata 2022-08-12 19:19:23 -07:00
parent 0fe5f03eeb
commit 7082e1506d
1 changed files with 1 additions and 1 deletions

View File

@ -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) {