Fix a swath of AUTO_CAUSES_COPY issues reported by Coverity

This commit is contained in:
Tim Wojtulewicz 2022-08-15 09:45:46 -07:00
parent f631551ffb
commit 2abc82722f
7 changed files with 9 additions and 9 deletions

View file

@ -895,7 +895,7 @@ StmtPtr InitStmt::Duplicate()
// Need to duplicate the initializer list since later reductions
// can modify it in place.
std::vector<IDPtr> new_inits;
for ( auto id : inits )
for ( const auto& id : inits )
new_inits.push_back(id);
return SetSucc(new InitStmt(new_inits));