mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 04:28:20 +00:00
migrate to differentiated vector "At" accessors to support future efficiency
This commit is contained in:
parent
bc4a6c0d07
commit
0118b6ee38
15 changed files with 91 additions and 89 deletions
|
@ -1326,10 +1326,6 @@ ValPtr ForStmt::DoExec(Frame* f, Val* v, StmtFlowType& flow) const
|
|||
|
||||
for ( auto i = 0u; i <= vv->Size(); ++i )
|
||||
{
|
||||
// Skip unassigned vector indices.
|
||||
if ( ! vv->At(i) )
|
||||
continue;
|
||||
|
||||
// Set the loop variable to the current index, and make
|
||||
// another pass over the loop body.
|
||||
f->SetElement((*loop_vars)[0], val_mgr->Count(i));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue