[mlir][SparseTensor] Fix incorrect API usage in RewritePatterns
Incorrect API usage was detected by D144552. Differential Revision: https://reviews.llvm.org/D145166
This commit is contained in:
@@ -444,7 +444,7 @@ public:
|
||||
auto denseTp =
|
||||
RankedTensorType::get(rtp.getShape(), rtp.getElementType());
|
||||
auto convert = rewriter.create<ConvertOp>(loc, denseTp, op.getSrc());
|
||||
op->setOperand(0, convert);
|
||||
rewriter.updateRootInPlace(op, [&]() { op->setOperand(0, convert); });
|
||||
return success();
|
||||
}
|
||||
if (encDst) {
|
||||
|
||||
Reference in New Issue
Block a user