ZAM control-flow tracking now explicitly includes the ends of loops

This commit is contained in:
Vern Paxson 2024-09-11 16:41:24 +02:00 committed by Christian Kreibich
parent b0e21b7e64
commit 56d01ea83b
4 changed files with 24 additions and 5 deletions

View file

@ -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;
}
}