mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42:21 +02:00
Fixed reification on delegate invocations
This commit is contained in:
parent
500a42b054
commit
80d9b11166
2 changed files with 8 additions and 2 deletions
|
@ -15926,7 +15926,13 @@ int BfExprEvaluator::GetMixinVariable()
|
|||
BfModuleMethodInstance BfExprEvaluator::GetSelectedMethod(BfAstNode* targetSrc, BfTypeInstance* curTypeInst, BfMethodDef* methodDef, BfMethodMatcher& methodMatcher, BfType** overrideReturnType)
|
||||
{
|
||||
bool failed = false;
|
||||
|
||||
|
||||
if ((mModule->mIsReified) && (!curTypeInst->mIsReified))
|
||||
{
|
||||
// Make sure target type gets reified
|
||||
mModule->PopulateType(curTypeInst);
|
||||
}
|
||||
|
||||
BfTypeVector resolvedGenericArguments;
|
||||
BfMethodState* rootMethodState = NULL;
|
||||
if (mModule->mCurMethodState != NULL)
|
||||
|
|
|
@ -8806,7 +8806,7 @@ BfTypedValue BfModule::CreateValueFromExpression(BfExprEvaluator& exprEvaluator,
|
|||
|
||||
if ((!typedVal.mType->IsComposite()) && (!typedVal.mType->IsGenericParam())) // Load non-structs by default
|
||||
{
|
||||
if ((!mBfIRBuilder->mIgnoreWrites) && (!typedVal.mType->IsValuelessType()) && (!typedVal.mType->IsVar()))
|
||||
if ((!mBfIRBuilder->mIgnoreWrites) && (!typedVal.mType->IsDataIncomplete()) && (!typedVal.mType->IsValuelessType()) && (!typedVal.mType->IsVar()))
|
||||
{
|
||||
BF_ASSERT(!typedVal.mValue.IsFake());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue