From 4589e7ea0ea4121baea76e2a7bc488398a3279bd Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Sat, 28 Sep 2024 12:58:52 -0400 Subject: [PATCH] Fixed mWantsGCMarking, taking into account base's mWantsGCMarking --- IDEHelper/Compiler/BfModuleTypeUtils.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/IDEHelper/Compiler/BfModuleTypeUtils.cpp b/IDEHelper/Compiler/BfModuleTypeUtils.cpp index 0dffaaac8..b93321a6e 100644 --- a/IDEHelper/Compiler/BfModuleTypeUtils.cpp +++ b/IDEHelper/Compiler/BfModuleTypeUtils.cpp @@ -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()))