mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 04:58:21 +00:00
migrated some raw pointers to smart pointers
This commit is contained in:
parent
c23ee30542
commit
1b2cd0c767
14 changed files with 74 additions and 113 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue