another set of tweaks per review comments

This commit is contained in:
Vern Paxson 2021-06-09 09:41:41 -07:00
parent d4eb0224a1
commit 7904701ffb
5 changed files with 8 additions and 11 deletions

View file

@ -2120,8 +2120,7 @@ ExprPtr ArithCoerceExpr::Reduce(Reducer* c, StmtPtr& red_stmt)
if ( IsArithmetic(t->Tag()) || IsArithmetic(ct->Tag()) )
{
auto v = FoldSingleVal(cv, t);
if ( v )
if ( auto v = FoldSingleVal(cv, t) )
return make_intrusive<ConstExpr>(v);
// else there was a coercion error, fall through
}