mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 20:12:21 +02:00
Fixed undef type issue in ceMachine
This commit is contained in:
parent
6874402e58
commit
c52ef256a5
1 changed files with 8 additions and 1 deletions
|
@ -4011,7 +4011,14 @@ BfTypedValue CeContext::Call(BfAstNode* targetSrc, BfModule* module, BfMethodIns
|
||||||
{
|
{
|
||||||
auto constant = module->mBfIRBuilder->GetConstant(arg);
|
auto constant = module->mBfIRBuilder->GetConstant(arg);
|
||||||
if (constant->mConstType == BfConstType_Undef)
|
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)
|
if (!isConst)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue