1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 19:48:20 +02:00

Fixed type data population in const append alloc calc for ref type array

This commit is contained in:
Brian Fiete 2024-02-15 14:27:04 -05:00
parent 2cc0afa762
commit 1c310e1bec

View file

@ -577,7 +577,7 @@ public:
if (!handled) if (!handled)
{ {
origResolvedTypeRef = mModule->ResolveTypeRef(arrayTypeRef->mElementType); origResolvedTypeRef = mModule->ResolveTypeRef(arrayTypeRef->mElementType, BfPopulateType_Declaration);
} }
if (origResolvedTypeRef == NULL) if (origResolvedTypeRef == NULL)
@ -713,7 +713,7 @@ public:
} }
} }
mModule->PopulateType(resultType); mModule->PopulateType(resultType, resultType->IsValueType() ? BfPopulateType_Data : BfPopulateType_Declaration);
if (isRawArrayAlloc) if (isRawArrayAlloc)
{ {