From 1c310e1bec1d0d2b3fb8e5a534a529830a6b61e8 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Thu, 15 Feb 2024 14:27:04 -0500 Subject: [PATCH] Fixed type data population in const append alloc calc for ref type array --- IDEHelper/Compiler/BfModule.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IDEHelper/Compiler/BfModule.cpp b/IDEHelper/Compiler/BfModule.cpp index c9aef991..29350dd5 100644 --- a/IDEHelper/Compiler/BfModule.cpp +++ b/IDEHelper/Compiler/BfModule.cpp @@ -577,7 +577,7 @@ public: if (!handled) { - origResolvedTypeRef = mModule->ResolveTypeRef(arrayTypeRef->mElementType); + origResolvedTypeRef = mModule->ResolveTypeRef(arrayTypeRef->mElementType, BfPopulateType_Declaration); } if (origResolvedTypeRef == NULL) @@ -713,7 +713,7 @@ public: } } - mModule->PopulateType(resultType); + mModule->PopulateType(resultType, resultType->IsValueType() ? BfPopulateType_Data : BfPopulateType_Declaration); if (isRawArrayAlloc) {