mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
ZAM bug fix (simplification) for nested inline functions that don't do anything
This commit is contained in:
parent
d474317958
commit
5722596970
1 changed files with 1 additions and 8 deletions
|
@ -1047,14 +1047,7 @@ const ZAMStmt ZAMCompiler::CompileCatchReturn(const CatchReturnStmt* cr)
|
|||
|
||||
ResolveCatchReturns(GoToTargetBeyond(block_end));
|
||||
|
||||
// If control flow runs off the end of the block, then we need
|
||||
// to consider sync'ing globals at that point.
|
||||
auto block_last = LastStmt(block.get());
|
||||
|
||||
if ( block_last->Tag() == STMT_RETURN )
|
||||
return block_end;
|
||||
|
||||
return top_main_inst;
|
||||
return block_end;
|
||||
}
|
||||
|
||||
const ZAMStmt ZAMCompiler::CompileStmts(const StmtList* ws)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue