1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 20:42:21 +02:00

Fix for default values referencing composite global variables

This commit is contained in:
Brian Fiete 2020-10-16 14:30:49 -07:00
parent 7473fdeaa6
commit 852748ae1f

View file

@ -6084,6 +6084,7 @@ BfTypedValue BfExprEvaluator::CreateCall(BfAstNode* targetSrc, const BfTypedValu
argValue = mModule->GetTypedValueFromConstant(foreignConst, methodInstance->GetOwner()->mConstHolder, foreignDefaultVal.mType);
if (!argValue)
mModule->Fail("Default parameter value failed", targetSrc);
mModule->mBfIRBuilder->PopulateType(foreignDefaultVal.mType);
}
}
else