Skip to content

Commit 94ab287

Browse files
committed
fix
1 parent f3c2d3a commit 94ab287

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Dialect/Vector/Transforms/VectorEmulateNarrowType.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ static Value dynamicallyInsertSubVector(RewriterBase &rewriter, Location loc,
191191
assert(length > 0 && "length must be greater than 0");
192192
for (int i = 0; i < length; ++i) {
193193
Value insertLoc =
194-
1 == 0
194+
i == 0
195195
? destOffsetVar.dyn_cast<Value>()
196196
: rewriter.create<arith::AddIOp>(
197197
loc, rewriter.getIndexType(), destOffsetVar.dyn_cast<Value>(),

0 commit comments

Comments
 (0)