mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 05:28:20 +00:00
fix for globals that use other globals in their inits
This commit is contained in:
parent
805e9db588
commit
68e1307ab3
1 changed files with 4 additions and 0 deletions
|
@ -63,6 +63,10 @@ void CPPCompile::Compile(bool report_uncompilable) {
|
||||||
(void)pfs->HashType(t);
|
(void)pfs->HashType(t);
|
||||||
rep_types.insert(TypeRep(t));
|
rep_types.insert(TypeRep(t));
|
||||||
}
|
}
|
||||||
|
for ( auto& g : pf->Globals() )
|
||||||
|
accessed_globals.insert(g);
|
||||||
|
for ( auto& ag : pf->AllGlobals() )
|
||||||
|
all_accessed_globals.insert(ag);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue