mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
fixup! fixup! shift much of the internal use of ID* identifier pointers over to IDPtr objects
This commit is contained in:
parent
a6f9d69c91
commit
3ff3eee398
1 changed files with 1 additions and 3 deletions
|
@ -48,9 +48,7 @@ void ZAMCompiler::Init() {
|
|||
|
||||
void ZAMCompiler::InitGlobals() {
|
||||
for ( auto& g : pf->Globals() ) {
|
||||
GlobalInfo info;
|
||||
info.id = g;
|
||||
info.slot = AddToFrame(g);
|
||||
GlobalInfo info{.id = g, .slot = AddToFrame(g)};
|
||||
global_id_to_info[g] = globalsI.size();
|
||||
globalsI.push_back(info);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue