Deprecate Func::FType(), replace with Func::GetType()

This commit is contained in:
Jon Siwek 2020-05-15 18:21:06 -07:00
parent 0f5bb4b83d
commit 688bed97bc
9 changed files with 37 additions and 28 deletions

View file

@ -727,7 +727,7 @@ RecordVal* Manager::MakeEvent(val_list* args, Frame* frame)
return rval;
}
auto num_args = func->FType()->Args()->NumFields();
auto num_args = func->GetType()->Args()->NumFields();
if ( num_args != args->length() - 1 )
{
@ -741,7 +741,7 @@ RecordVal* Manager::MakeEvent(val_list* args, Frame* frame)
}
const auto& got_type = (*args)[i]->GetType();
const auto& expected_type = func->FType()->ArgTypes()->Types()[i - 1];
const auto& expected_type = func->GetType()->ArgTypes()->Types()[i - 1];
if ( ! same_type(got_type.get(), expected_type.get()) )
{