Skip to content

Commit bb8632c

Browse files
committed
[mlir][sparse] fix broken build
rebase and commit crossed the getFunc change Reviewed By: Chia-hungDuan Differential Revision: https://reviews.llvm.org/D115270
1 parent b108cd7 commit bb8632c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorConversion.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -983,9 +983,8 @@ class SparseTensorCompressConverter : public OpConversionPattern<CompressOp> {
983983
else
984984
return failure();
985985
TypeRange noTp;
986-
auto fn =
987-
getFunc(op, name, noTp, adaptor.getOperands(), /*emitCInterface=*/true);
988-
rewriter.replaceOpWithNewOp<CallOp>(op, noTp, fn, adaptor.getOperands());
986+
replaceOpWithFuncCall(rewriter, op, name, noTp, adaptor.getOperands(),
987+
EmitCInterface::On);
989988
return success();
990989
}
991990
};

0 commit comments

Comments
 (0)