mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 03:58:20 +00:00
ZAM: Create ListValPtr directly instead of a stack object
This commit is contained in:
parent
ac59b11f33
commit
ca29793ecc
1 changed files with 3 additions and 4 deletions
|
@ -770,10 +770,9 @@ eval auto op1 = frame[z.v1].ToVal(z.t);
|
|||
# the main instruction type, as always.
|
||||
|
||||
macro EvalVal2InTableCore(op1, op2)
|
||||
ListVal lv(TYPE_ANY);
|
||||
lv.Append(op1);
|
||||
lv.Append(op2);
|
||||
ListValPtr lvp = {NewRef{}, &lv};
|
||||
auto lvp = zeek::make_intrusive<ListVal>(TYPE_ANY);
|
||||
lvp->Append(op1);
|
||||
lvp->Append(op2);
|
||||
|
||||
macro EvalVal2InTableAssignCore(slot)
|
||||
frame[z.v1].int_val = frame[z.slot].table_val->Find(std::move(lvp)) != nullptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue