Fix a bunch of variable shadowing issues from LGTM

This commit is contained in:
Tim Wojtulewicz 2022-11-02 15:54:51 -07:00
parent f8eb2d9241
commit e8dbfc1cb0
10 changed files with 28 additions and 27 deletions

View file

@ -256,8 +256,8 @@ ExprListStmt::ExprListStmt(StmtTag t, ListExprPtr arg_l) : Stmt(t), l(std::move(
const ExprPList& e = l->Exprs();
for ( const auto& expr : e )
{
const auto& t = expr->GetType();
if ( ! t || t->Tag() == TYPE_VOID )
const auto& et = expr->GetType();
if ( ! et || et->Tag() == TYPE_VOID )
Error("value of type void illegal");
}