Skip to content

Commit 6ca1f3b

Browse files
[mlir] Use llvm::fill (NFC) (#163329)
We can pass a range directly to llvm::fill.
1 parent 324f8d0 commit 6ca1f3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Target/Wasm/TranslateFromWasm.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -956,7 +956,7 @@ inline parsed_inst_t ExpressionParser::buildNumericOp(
956956
<< ", type = " << ty << " ***";
957957
auto tysToPop = SmallVector<Type, numOperands>();
958958
tysToPop.resize(numOperands);
959-
std::fill(tysToPop.begin(), tysToPop.end(), ty);
959+
llvm::fill(tysToPop, ty);
960960
auto operands = popOperands(tysToPop);
961961
if (failed(operands))
962962
return failure();

0 commit comments

Comments
 (0)