mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-15 20:51:35 +00:00
[mlir] Change missed usage PatternMatchResult to LogicalResult
This commit is contained in:
parent
3f85134d71
commit
2c1ba63ede
@ -20,7 +20,7 @@ struct CallOpSignatureConversion : public OpConversionPattern<CallOp> {
|
||||
: OpConversionPattern(ctx), converter(converter) {}
|
||||
|
||||
/// Hook for derived classes to implement combined matching and rewriting.
|
||||
PatternMatchResult
|
||||
LogicalResult
|
||||
matchAndRewrite(CallOp callOp, ArrayRef<Value> operands,
|
||||
ConversionPatternRewriter &rewriter) const override {
|
||||
FunctionType type = callOp.getCalleeType();
|
||||
@ -28,13 +28,13 @@ struct CallOpSignatureConversion : public OpConversionPattern<CallOp> {
|
||||
// Convert the original function results.
|
||||
SmallVector<Type, 1> convertedResults;
|
||||
if (failed(converter.convertTypes(type.getResults(), convertedResults)))
|
||||
return matchFailure();
|
||||
return failure();
|
||||
|
||||
// Substitute with the new result types from the corresponding FuncType
|
||||
// conversion.
|
||||
rewriter.replaceOpWithNewOp<CallOp>(callOp, callOp.callee(),
|
||||
convertedResults, operands);
|
||||
return matchSuccess();
|
||||
return success();
|
||||
}
|
||||
|
||||
/// The type converter to use when rewriting the signature.
|
||||
|
Loading…
x
Reference in New Issue
Block a user