mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 03:58:20 +00:00
fixes for ?$ operator - always track it, and assume subrecords are initialized
This commit is contained in:
parent
183fbc750f
commit
e336a30963
1 changed files with 5 additions and 8 deletions
|
@ -983,14 +983,11 @@ TraversalCode RD_Decorate::PreExpr(const Expr* e)
|
|||
}
|
||||
|
||||
auto fn = hf->FieldName();
|
||||
auto field_rd = id_di->FindField(fn);
|
||||
if ( ! field_rd )
|
||||
{
|
||||
auto ft = id_rt->GetFieldType(fn);
|
||||
field_rd = id_di->CreateField(fn, std::move(ft));
|
||||
CreateInitPostDef(field_rd, DefinitionPoint(hf),
|
||||
false, 0);
|
||||
}
|
||||
auto ft = id_rt->GetFieldType(fn);
|
||||
auto field_rd = id_di->CreateField(fn, std::move(ft));
|
||||
|
||||
CreateInitPostDef(field_rd, DefinitionPoint(hf),
|
||||
true, 0);
|
||||
|
||||
// Don't analyze r itself, since it's not expected
|
||||
// to be defined here.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue