mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 12:38:20 +00:00
ZAM control-flow tracking now explicitly includes the ends of loops
This commit is contained in:
parent
b0e21b7e64
commit
56d01ea83b
4 changed files with 24 additions and 5 deletions
|
@ -35,7 +35,7 @@ void ZAMCompiler::AddCFT(ZInstI* inst, ControlFlowType cft) {
|
|||
if ( cft_entry == inst->aux->cft.end() )
|
||||
inst->aux->cft[cft] = 1;
|
||||
else {
|
||||
ASSERT(cft == CFT_BLOCK_END || cft == CFT_BREAK);
|
||||
ASSERT(cft == CFT_BLOCK_END || cft == CFT_LOOP_END || cft == CFT_BREAK);
|
||||
++cft_entry->second;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue