Prechádzať zdrojové kódy

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

Brian Fiete 1 rok pred
rodič
commit
1c310e1bec
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      IDEHelper/Compiler/BfModule.cpp

+ 2 - 2
IDEHelper/Compiler/BfModule.cpp

@@ -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)
 					{
 					{