Skip to content

Commit f1025c0

Browse files
[mlir] Construct SmallVector with ArrayRef (NFC) (#134023)
1 parent d760dbe commit f1025c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Dialect/XeGPU/IR/XeGPUDialect.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ LogicalResult TensorDescType::verify(
301301

302302
// For 1D tensor, pad the shape with an outer unit dimension to allow common
303303
// validation logic.
304-
SmallVector<int64_t> tensorShape(shape.begin(), shape.end());
304+
SmallVector<int64_t> tensorShape(shape);
305305
if (rank == 1)
306306
tensorShape = {1, tensorShape.back()};
307307

0 commit comments

Comments
 (0)