gen-zam: Fix a couple of coverity issues

1491335: AUTO_CAUSES_COPY due to a for loop using auto& instead of const auto&
1491338: AUTO_CAUSES_COPY due to a for loop using auto& instead of const auto&
This commit is contained in:
Tim Wojtulewicz 2022-10-05 09:26:44 -07:00
parent 789b06b1ea
commit bacd56258c

View file

@ -1339,10 +1339,10 @@ void ZAM_ExprOpTemplate::InstantiateEval(const vector<ZAM_OperandType>& ot_orig,
}
if ( zc != ZIC_VEC )
for ( auto em1 : eval_mixed_set )
for ( const auto& em1 : eval_mixed_set )
{
auto et1 = em1.first;
for ( auto em2 : em1.second )
for ( const auto& em2 : em1.second )
{
auto et2 = em2.first;