1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 04:22:20 +02:00

Improved opaques - can now be used with extension methods

This commit is contained in:
Brian Fiete 2025-01-19 07:02:18 -08:00
parent c21be1eea1
commit 2f98e7f579
7 changed files with 72 additions and 26 deletions

View file

@ -2794,7 +2794,7 @@ void BfIRBuilder::CreateTypeDeclaration(BfType* type, bool forceDbgDefine)
{
BfPointerType* pointerType = (BfPointerType*)type;
populateModule->PopulateType(pointerType->mElementType, BfPopulateType_Data);
if (pointerType->mElementType->IsValuelessType())
if (pointerType->mElementType->IsValuelessNonOpaqueType())
{
irType = GetPrimitiveType(BfTypeCode_NullPtr);
}
@ -2813,7 +2813,7 @@ void BfIRBuilder::CreateTypeDeclaration(BfType* type, bool forceDbgDefine)
{
BfRefType* refType = (BfRefType*)type;
if (refType->mElementType->IsValuelessType())
if (refType->mElementType->IsValuelessNonOpaqueType())
irType = GetPrimitiveType(BfTypeCode_NullPtr);
else
{