mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Stmt tag for compiled-to-C++; Inliner knows to avoid it
This commit is contained in:
parent
8d10fd32d0
commit
5efba9e115
3 changed files with 6 additions and 3 deletions
|
@ -109,8 +109,8 @@ void Inliner::Analyze()
|
|||
}
|
||||
|
||||
for ( auto& f : funcs )
|
||||
// Candidates are non-event, non-hook, non-recursive
|
||||
// functions ... that don't use lambdas or when's,
|
||||
// Candidates are non-event, non-hook, non-recursive,
|
||||
// non-compiled functions ... that don't use lambdas or when's,
|
||||
// since we don't currently compute the closures/frame
|
||||
// sizes for them correctly, and more fundamentally since
|
||||
// we don't compile them and hence inlining them will
|
||||
|
@ -118,7 +118,8 @@ void Inliner::Analyze()
|
|||
if ( f.Func()->Flavor() == FUNC_FLAVOR_FUNCTION &&
|
||||
non_recursive_funcs.count(f.Func()) > 0 &&
|
||||
f.Profile()->NumLambdas() == 0 &&
|
||||
f.Profile()->NumWhenStmts() == 0 )
|
||||
f.Profile()->NumWhenStmts() == 0 &&
|
||||
f.Body()->Tag() != STMT_CPP )
|
||||
inline_ables.insert(f.Func());
|
||||
|
||||
for ( auto& f : funcs )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue