mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Made 'faked' static reference undef so it's not detected as constant
This commit is contained in:
parent
cbfc091fce
commit
11ccb876a3
2 changed files with 3 additions and 1 deletions
|
@ -15752,7 +15752,7 @@ BfTypedValue BfModule::ReferenceStaticField(BfFieldInstance* fieldInstance)
|
|||
{
|
||||
// Just fake it for the extern and unspecialized modules
|
||||
// We can't do this for compilation because unreified methods with default params need to get actual global variable refs
|
||||
return BfTypedValue(mBfIRBuilder->CreateConstNull(), fieldInstance->GetResolvedType(), true);
|
||||
return BfTypedValue(mBfIRBuilder->CreateUndefValue(mBfIRBuilder->GetPrimitiveType(BfTypeCode_NullPtr)), fieldInstance->GetResolvedType(), true);
|
||||
}
|
||||
|
||||
BfIRValue* globalValuePtr = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue