mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
fixup for loop body control flow
This commit is contained in:
parent
83eda01682
commit
809c7134fe
1 changed files with 1 additions and 2 deletions
|
@ -936,6 +936,7 @@ const ZAMStmt ZAMCompiler::FinishLoop(const ZAMStmt iter_head, ZInstI& iter_stmt
|
|||
bool is_table) {
|
||||
auto loop_iter = AddInst(iter_stmt);
|
||||
auto body_end = CompileStmt(body);
|
||||
AddCFT(insts1[body_end.stmt_num], CFT_BLOCK_END);
|
||||
|
||||
// We only need cleanup for looping over tables, but for now we
|
||||
// need some sort of placeholder instruction (until the optimizer
|
||||
|
@ -958,8 +959,6 @@ const ZAMStmt ZAMCompiler::FinishLoop(const ZAMStmt iter_head, ZInstI& iter_stmt
|
|||
ResolveNexts(GoToTarget(iter_head));
|
||||
ResolveBreaks(GoToTarget(final_stmt));
|
||||
|
||||
AddCFT(&z, CFT_BLOCK_END);
|
||||
|
||||
return final_stmt;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue