[Mlir-commits] [mlir] 260e45c - [mlir][sparse] fix stack UAF (#79353)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Jan 24 12:12:59 PST 2024
Author: Peiming Liu
Date: 2024-01-24T12:12:55-08:00
New Revision: 260e45cff0c3b2e95eea9752d64f7a3a31432c0a
URL: https://github.com/llvm/llvm-project/commit/260e45cff0c3b2e95eea9752d64f7a3a31432c0a
DIFF: https://github.com/llvm/llvm-project/commit/260e45cff0c3b2e95eea9752d64f7a3a31432c0a.diff
LOG: [mlir][sparse] fix stack UAF (#79353)
Added:
Modified:
mlir/lib/Dialect/SparseTensor/Transforms/Utils/SparseTensorLevel.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/SparseTensor/Transforms/Utils/SparseTensorLevel.cpp b/mlir/lib/Dialect/SparseTensor/Transforms/Utils/SparseTensorLevel.cpp
index 22e65be8782fb4..226cccbc422b9b 100644
--- a/mlir/lib/Dialect/SparseTensor/Transforms/Utils/SparseTensorLevel.cpp
+++ b/mlir/lib/Dialect/SparseTensor/Transforms/Utils/SparseTensorLevel.cpp
@@ -862,14 +862,13 @@ ValueRange FilterIterator::forward(OpBuilder &b, Location l) {
SmallVector<Value> whileArgs(getItVals().begin(), getItVals().end());
whileArgs.push_back(isFirst);
-
auto whileOp = b.create<scf::WhileOp>(
l, ValueRange(whileArgs).getTypes(), whileArgs,
/*beforeBuilder=*/
[this](OpBuilder &b, Location l, ValueRange ivs) {
ValueRange isFirst = linkNewScope(ivs);
assert(isFirst.size() == 1);
- ValueRange cont =
+ scf::ValueVector cont =
genWhenInBound(b, l, *wrap, C_FALSE,
[this, isFirst](OpBuilder &b, Location l,
Value wrapCrd) -> scf::ValueVector {
More information about the Mlir-commits
mailing list