mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 08:08:19 +00:00
fix for ZAM inlining failing to inline function call arguments
This commit is contained in:
parent
6b0d595dae
commit
51eec61272
1 changed files with 4 additions and 4 deletions
|
@ -2363,6 +2363,10 @@ ExprPtr CallExpr::Duplicate()
|
||||||
|
|
||||||
ExprPtr CallExpr::Inline(Inliner* inl)
|
ExprPtr CallExpr::Inline(Inliner* inl)
|
||||||
{
|
{
|
||||||
|
// First check our elements.
|
||||||
|
func = func->Inline(inl);
|
||||||
|
args = cast_intrusive<ListExpr>(args->Inline(inl));
|
||||||
|
|
||||||
auto new_me = inl->CheckForInlining({NewRef{}, this});
|
auto new_me = inl->CheckForInlining({NewRef{}, this});
|
||||||
|
|
||||||
if ( ! new_me )
|
if ( ! new_me )
|
||||||
|
@ -2372,10 +2376,6 @@ ExprPtr CallExpr::Inline(Inliner* inl)
|
||||||
if ( new_me.get() != this )
|
if ( new_me.get() != this )
|
||||||
return new_me;
|
return new_me;
|
||||||
|
|
||||||
// We're not inlining, but perhaps our elements should be.
|
|
||||||
func = func->Inline(inl);
|
|
||||||
args = cast_intrusive<ListExpr>(args->Inline(inl));
|
|
||||||
|
|
||||||
return ThisPtr();
|
return ThisPtr();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue