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

@ -193,7 +193,8 @@ const Stmt* ZAMCompiler::LastStmt(const Stmt* s) const
if ( s->Tag() == STMT_LIST )
{
auto sl = s->AsStmtList()->Stmts();
return sl[sl.length() - 1];
ASSERT(! sl.empty());
return sl.back().get();
}
else