mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +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() {
|
void ZAMCompiler::InitGlobals() {
|
||||||
for ( auto& g : pf->Globals() ) {
|
for ( auto& g : pf->Globals() ) {
|
||||||
GlobalInfo info;
|
GlobalInfo info{.id = g, .slot = AddToFrame(g)};
|
||||||
info.id = g;
|
|
||||||
info.slot = AddToFrame(g);
|
|
||||||
global_id_to_info[g] = globalsI.size();
|
global_id_to_info[g] = globalsI.size();
|
||||||
globalsI.push_back(info);
|
globalsI.push_back(info);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue