ZAM bug fix (simplification) for nested inline functions that don't do anything

This commit is contained in:
Vern Paxson 2023-06-14 17:43:55 -07:00
parent d474317958
commit 5722596970

View file

@ -1047,14 +1047,7 @@ const ZAMStmt ZAMCompiler::CompileCatchReturn(const CatchReturnStmt* cr)
ResolveCatchReturns(GoToTargetBeyond(block_end)); ResolveCatchReturns(GoToTargetBeyond(block_end));
// If control flow runs off the end of the block, then we need return block_end;
// 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;
} }
const ZAMStmt ZAMCompiler::CompileStmts(const StmtList* ws) const ZAMStmt ZAMCompiler::CompileStmts(const StmtList* ws)