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

Fixed operators on readonly struct fields

This commit is contained in:
Brian Fiete 2020-05-26 07:24:53 -07:00
parent e16e4613b6
commit b6f5e67438

View file

@ -12153,7 +12153,7 @@ BfTypedValue BfModule::ReferenceStaticField(BfFieldInstance* fieldInstance)
{ {
// Just fake it for the extern and unspecialized modules // Just fake it for the extern and unspecialized modules
auto ptrType = CreatePointerType(fieldInstance->GetResolvedType()); auto ptrType = CreatePointerType(fieldInstance->GetResolvedType());
return BfTypedValue(GetDefaultValue(ptrType), fieldInstance->GetResolvedType(), true); return BfTypedValue(mBfIRBuilder->GetFakeVal(), fieldInstance->GetResolvedType(), true);
} }
BfIRValue globalValue; BfIRValue globalValue;