addressed a number of code review comments

This commit is contained in:
Vern Paxson 2021-06-07 10:52:19 -07:00
parent b3e3cb847b
commit d4eb0224a1
9 changed files with 56 additions and 71 deletions

View file

@ -359,7 +359,7 @@ void Attributes::CheckAttr(Attr* a)
// Ok.
break;
auto e = check_and_promote_expr(a->GetExpr().get(), type.get());
auto e = check_and_promote_expr(a->GetExpr(), type);
if ( e )
{
@ -399,7 +399,7 @@ void Attributes::CheckAttr(Attr* a)
// Ok.
break;
auto e = check_and_promote_expr(a->GetExpr().get(), ytype.get());
auto e = check_and_promote_expr(a->GetExpr(), ytype);
if ( e )
{
@ -425,7 +425,7 @@ void Attributes::CheckAttr(Attr* a)
if ( (atype->Tag() == TYPE_TABLE && atype->AsTableType()->IsUnspecifiedTable()) )
{
auto e = check_and_promote_expr(a->GetExpr().get(), type.get());
auto e = check_and_promote_expr(a->GetExpr(), type);
if ( e )
{