forked from OSchip/llvm-project
[mlir] Use has_value instead of hasValue (NFC)
This commit is contained in:
parent
0fe5f03eeb
commit
7082e1506d
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue