Skip to content
This repository was archived by the owner on Oct 11, 2025. It is now read-only.

Commit 431b586

Browse files
authored
[mlir] Use llvm::fill instead of std::fill(NFC) (#146889)
1 parent 759f2c1 commit 431b586

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

IRAttributes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1670,7 +1670,7 @@ class PyStridedLayoutAttribute
16701670
[](int64_t rank, DefaultingPyMlirContext ctx) {
16711671
auto dynamic = mlirShapedTypeGetDynamicStrideOrOffset();
16721672
std::vector<int64_t> strides(rank);
1673-
std::fill(strides.begin(), strides.end(), dynamic);
1673+
llvm::fill(strides, dynamic);
16741674
MlirAttribute attr = mlirStridedLayoutAttrGet(
16751675
ctx->get(), dynamic, strides.size(), strides.data());
16761676
return PyStridedLayoutAttribute(ctx->getRef(), attr);

0 commit comments

Comments
 (0)