mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Fixed issue with ref to an opaque type
This commit is contained in:
parent
fd098f3e96
commit
c59fac571a
1 changed files with 1 additions and 1 deletions
|
@ -16478,7 +16478,7 @@ void BfModule::SetupIRMethod(BfMethodInstance* methodInstance, BfIRFunction func
|
|||
auto elementType = refType->mElementType;
|
||||
PopulateType(elementType, BfPopulateType_Data);
|
||||
addDeref = elementType->mSize;
|
||||
if ((addDeref <= 0) && (!elementType->IsValuelessType()))
|
||||
if ((addDeref <= 0) && (!elementType->IsValuelessType()) && (!elementType->IsOpaque()))
|
||||
AssertErrorState();
|
||||
}
|
||||
if ((resolvedTypeRef->IsComposite()) && (!resolvedTypeRef->IsTypedPrimitive()))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue