mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42:21 +02:00
Correctly pass bypassVirtual into AddDeferredCall
This commit is contained in:
parent
6816c1e006
commit
d695434add
1 changed files with 1 additions and 3 deletions
|
@ -6665,8 +6665,7 @@ BfTypedValue BfExprEvaluator::CreateCall(BfAstNode* targetSrc, BfMethodInstance*
|
|||
|
||||
if (mDeferCallRef != NULL)
|
||||
{
|
||||
mModule->AddDeferredCall(BfModuleMethodInstance(methodInstance, func), irArgs, mDeferScopeAlloc, mDeferCallRef);
|
||||
//return _GetDefaultReturnValue();
|
||||
mModule->AddDeferredCall(BfModuleMethodInstance(methodInstance, func), irArgs, mDeferScopeAlloc, mDeferCallRef, bypassVirtual);
|
||||
return mModule->GetFakeTypedValue(returnType);
|
||||
}
|
||||
|
||||
|
@ -6677,7 +6676,6 @@ BfTypedValue BfExprEvaluator::CreateCall(BfAstNode* targetSrc, BfMethodInstance*
|
|||
// This can happen either from an error, or from the resolver while doing Internals_Changed processing
|
||||
mModule->AssertErrorState();
|
||||
}
|
||||
//return mModule->GetDefaultTypedValue(returnType,/*, true*/false, returnType->IsComposite());
|
||||
return _GetDefaultReturnValue();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue