Skip to content

Commit e2cbdb7

Browse files
committed
Clang-tidy
1 parent 4e4cf93 commit e2cbdb7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/ExprInterpreter.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,7 @@ void ExprInterpreter::visit(const Broadcast *op) {
404404

405405
void ExprInterpreter::visit(const Shuffle *op) {
406406
std::vector<EvalValue> vecs;
407+
vecs.reserve(op->vectors.size());
407408
for (const Expr &e : op->vectors) {
408409
vecs.push_back(eval(e));
409410
}
@@ -489,6 +490,7 @@ void ExprInterpreter::visit(const VectorReduce *op) {
489490

490491
void ExprInterpreter::visit(const Call *op) {
491492
std::vector<EvalValue> args;
493+
args.reserve(op->args.size());
492494
for (const Expr &e : op->args) {
493495
args.push_back(eval(e));
494496
}

0 commit comments

Comments
 (0)