mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
some very minor tidying of script optimization code/documentation
This commit is contained in:
parent
8e0a62bfec
commit
a824bb1e4b
4 changed files with 5 additions and 6 deletions
|
@ -460,12 +460,12 @@ FuncTypeInfo::FuncTypeInfo(CPPCompile* _c, TypePtr _t) : AbstractTypeInfo(_c, st
|
|||
params = f->Params();
|
||||
yield = f->Yield();
|
||||
|
||||
auto gi = c->RegisterType(f->Params());
|
||||
auto gi = c->RegisterType(params);
|
||||
if ( gi )
|
||||
init_cohort = gi->InitCohort();
|
||||
|
||||
if ( yield ) {
|
||||
gi = c->RegisterType(f->Yield());
|
||||
auto gi = c->RegisterType(f->Yield());
|
||||
if ( gi )
|
||||
init_cohort = max(init_cohort, gi->InitCohort());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue