diff --git a/src/script_opt/Inline.cc b/src/script_opt/Inline.cc index 942eefe8b1..4e7b7effa2 100644 --- a/src/script_opt/Inline.cc +++ b/src/script_opt/Inline.cc @@ -154,7 +154,7 @@ void Inliner::InlineFunction(FuncInfo* f) f->Func()->SetFrameSize(new_frame_size); } -ExprPtr Inliner::CheckForInlining(IntrusivePtr c) +ExprPtr Inliner::CheckForInlining(CallExprPtr c) { auto f = c->Func(); diff --git a/src/script_opt/Inline.h b/src/script_opt/Inline.h index cb27dc3c0f..5c3a64a778 100644 --- a/src/script_opt/Inline.h +++ b/src/script_opt/Inline.h @@ -5,6 +5,7 @@ #pragma once #include "zeek/Func.h" +#include "zeek/Expr.h" #include "zeek/Scope.h" #include @@ -25,7 +26,7 @@ public: // Either returns the original CallExpr if it's not inline-able, // or an InlineExpr if it is. - ExprPtr CheckForInlining(IntrusivePtr c); + ExprPtr CheckForInlining(CallExprPtr c); // True if the given function has been inlined. bool WasInlined(Func* f) { return inline_ables.count(f) > 0; }