migrated some raw pointers to smart pointers

This commit is contained in:
Vern Paxson 2023-07-07 18:29:45 -07:00
parent c23ee30542
commit 1b2cd0c767
14 changed files with 74 additions and 113 deletions

View file

@ -205,7 +205,7 @@ void get_first_statement(Stmt* list, Stmt*& first, Location& loc)
while ( first->Tag() == STMT_LIST )
{
if ( first->AsStmtList()->Stmts()[0] )
first = first->AsStmtList()->Stmts()[0];
first = first->AsStmtList()->Stmts()[0].get();
else
break;
}