mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 07:38:19 +00:00
flag loop that has slightly subtle logic
This commit is contained in:
parent
d58573adb1
commit
bd7edd27fd
1 changed files with 4 additions and 1 deletions
|
@ -155,8 +155,11 @@ bool ZAMCompiler::RemoveDeadCode()
|
||||||
|
|
||||||
bool did_removal = false;
|
bool did_removal = false;
|
||||||
|
|
||||||
for ( auto& i0 : insts1 )
|
// Note, loops up to the last instruction but not including it.
|
||||||
|
for ( unsigned int i = 0; i < insts1.size() - 1; ++i )
|
||||||
{
|
{
|
||||||
|
auto& i0 = insts1[i];
|
||||||
|
|
||||||
if ( ! i0->live )
|
if ( ! i0->live )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue