mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Fixed operators on readonly struct fields
This commit is contained in:
parent
e16e4613b6
commit
b6f5e67438
1 changed files with 1 additions and 1 deletions
|
@ -12153,7 +12153,7 @@ BfTypedValue BfModule::ReferenceStaticField(BfFieldInstance* fieldInstance)
|
|||
{
|
||||
// Just fake it for the extern and unspecialized modules
|
||||
auto ptrType = CreatePointerType(fieldInstance->GetResolvedType());
|
||||
return BfTypedValue(GetDefaultValue(ptrType), fieldInstance->GetResolvedType(), true);
|
||||
return BfTypedValue(mBfIRBuilder->GetFakeVal(), fieldInstance->GetResolvedType(), true);
|
||||
}
|
||||
|
||||
BfIRValue globalValue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue