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:
parent
c21be1eea1
commit
2f98e7f579
7 changed files with 72 additions and 26 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue