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

Fixed mWantsGCMarking, taking into account base's mWantsGCMarking

This commit is contained in:
Brian Fiete 2024-09-28 12:58:52 -04:00
parent bf3dec931a
commit 4589e7ea0e

View file

@ -4477,6 +4477,7 @@ void BfModule::DoPopulateType(BfType* resolvedTypeRef, BfPopulateType populateTy
}
typeInstance->mBaseType = baseTypeInst;
typeInstance->mWantsGCMarking = baseTypeInst->mWantsGCMarking;
typeInstance->mInheritDepth = baseTypeInst->mInheritDepth + 1;
typeInstance->mHasParameterizedBase = baseTypeInst->mHasParameterizedBase;
if ((baseTypeInst->IsArray()) || (baseTypeInst->IsSizedArray()) || (baseTypeInst->IsGenericTypeInstance()))