Skip to content

Commit 2c1ba63

Browse files
committed
[mlir] Change missed usage PatternMatchResult to LogicalResult
1 parent 3f85134 commit 2c1ba63

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mlir/lib/Conversion/StandardToStandard/StandardToStandard.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,21 @@ struct CallOpSignatureConversion : public OpConversionPattern<CallOp> {
2020
: OpConversionPattern(ctx), converter(converter) {}
2121

2222
/// Hook for derived classes to implement combined matching and rewriting.
23-
PatternMatchResult
23+
LogicalResult
2424
matchAndRewrite(CallOp callOp, ArrayRef<Value> operands,
2525
ConversionPatternRewriter &rewriter) const override {
2626
FunctionType type = callOp.getCalleeType();
2727

2828
// Convert the original function results.
2929
SmallVector<Type, 1> convertedResults;
3030
if (failed(converter.convertTypes(type.getResults(), convertedResults)))
31-
return matchFailure();
31+
return failure();
3232

3333
// Substitute with the new result types from the corresponding FuncType
3434
// conversion.
3535
rewriter.replaceOpWithNewOp<CallOp>(callOp, callOp.callee(),
3636
convertedResults, operands);
37-
return matchSuccess();
37+
return success();
3838
}
3939

4040
/// The type converter to use when rewriting the signature.

0 commit comments

Comments
 (0)