Skip to content

Commit

Permalink
[compiler] fix missing return value in removeCopy
Browse files Browse the repository at this point in the history
  • Loading branch information
XG-zheng committed Jun 19, 2024
1 parent cff508b commit 3c53067
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/lib/Dialect/MemRef/Transforms/RemoveCopy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ class RemoveCopyPattern : public OpRewritePattern<memref::CopyOp> {
}
rewriter.replaceOp(srcAllocOp, {reshapeTarget});
rewriter.eraseOp(copyOp);
return success();
}

return failure();
Expand Down

0 comments on commit 3c53067

Please sign in to comment.