Skip to content

Commit

Permalink
Fixed mWantsGCMarking, taking into account base's mWantsGCMarking
Browse files Browse the repository at this point in the history
  • Loading branch information
bfiete committed Sep 28, 2024
1 parent bf3dec9 commit 4589e7e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions IDEHelper/Compiler/BfModuleTypeUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()))
Expand Down

0 comments on commit 4589e7e

Please sign in to comment.