mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
New nullable support
This commit is contained in:
parent
59233cc996
commit
88adb3a1cd
16 changed files with 963 additions and 143 deletions
|
@ -2955,6 +2955,11 @@ void BfIRBuilder::CreateTypeDefinition(BfType* type, bool forceDefine)
|
|||
if (!typeInstance->IsTypedPrimitive())
|
||||
StructSetBody(MapTypeInst(typeInstance), irFieldTypes, isPacked || !isCRepr);
|
||||
|
||||
if (typeInstance->IsNullable())
|
||||
{
|
||||
BF_ASSERT(irFieldTypes.size() <= 3);
|
||||
}
|
||||
|
||||
for (auto& fieldInstanceRef : typeInstance->mFieldInstances)
|
||||
{
|
||||
auto fieldInstance = &fieldInstanceRef;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue