1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 03:52:19 +02:00

Fixed undef type issue in ceMachine

This commit is contained in:
Brian Fiete 2021-11-23 17:32:22 -08:00
parent 6874402e58
commit c52ef256a5

View file

@ -4011,7 +4011,14 @@ BfTypedValue CeContext::Call(BfAstNode* targetSrc, BfModule* module, BfMethodIns
{
auto constant = module->mBfIRBuilder->GetConstant(arg);
if (constant->mConstType == BfConstType_Undef)
isConst = false;
{
if (paramType->IsInstanceOf(module->mCompiler->mTypeTypeDef))
{
args[argIdx] = module->CreateTypeDataRef(module->GetPrimitiveType(BfTypeCode_None));
}
else
isConst = false;
}
}
if (!isConst)