mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 14:08:20 +00:00
fix & btest for ZAM bug with inlined nested loop
This commit is contained in:
parent
aa8f11fa17
commit
84dc430e00
3 changed files with 27 additions and 1 deletions
|
@ -261,7 +261,7 @@ void ZAMCompiler::ComputeLoopLevels()
|
|||
// We're extending an existing loop. Find
|
||||
// its current end.
|
||||
auto depth = t->loop_depth;
|
||||
while ( j < i && insts1[j]->loop_depth == depth )
|
||||
while ( j < i && insts1[j]->loop_depth >= depth )
|
||||
++j;
|
||||
|
||||
ASSERT(insts1[j]->loop_depth == depth - 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue