From b062c3d2dd69e358e950940157c3be87018214e4 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Mon, 2 Jun 2025 10:58:12 +0200 Subject: [PATCH] Fixed late reification error with disabled runtime --- IDEHelper/Compiler/BfCompiler.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/IDEHelper/Compiler/BfCompiler.cpp b/IDEHelper/Compiler/BfCompiler.cpp index 6f650687..d44d5b0c 100644 --- a/IDEHelper/Compiler/BfCompiler.cpp +++ b/IDEHelper/Compiler/BfCompiler.cpp @@ -1416,11 +1416,12 @@ void BfCompiler::CreateVData(BfVDataModule* bfModule) return; } - BfTypeInstance* stringType = bfModule->ResolveTypeDef(mStringTypeDef, BfPopulateType_Data)->ToTypeInstance(); - BfTypeInstance* stringViewType = bfModule->ResolveTypeDef(mStringViewTypeDef, BfPopulateType_Data)->ToTypeInstance(); - BfTypeInstance* reflectSpecializedTypeInstance = bfModule->ResolveTypeDef(mReflectSpecializedGenericType)->ToTypeInstance(); - BfTypeInstance* reflectUnspecializedTypeInstance = bfModule->ResolveTypeDef(mReflectUnspecializedGenericType)->ToTypeInstance(); - BfTypeInstance* reflectArrayTypeInstance = bfModule->ResolveTypeDef(mReflectArrayType)->ToTypeInstance(); + auto typeResolveModule = mContext->mUnreifiedModule; + BfTypeInstance* stringType = typeResolveModule->ResolveTypeDef(mStringTypeDef, BfPopulateType_Data)->ToTypeInstance(); + BfTypeInstance* stringViewType = typeResolveModule->ResolveTypeDef(mStringViewTypeDef, BfPopulateType_Data)->ToTypeInstance(); + BfTypeInstance* reflectSpecializedTypeInstance = typeResolveModule->ResolveTypeDef(mReflectSpecializedGenericType)->ToTypeInstance(); + BfTypeInstance* reflectUnspecializedTypeInstance = typeResolveModule->ResolveTypeDef(mReflectUnspecializedGenericType)->ToTypeInstance(); + BfTypeInstance* reflectArrayTypeInstance = typeResolveModule->ResolveTypeDef(mReflectArrayType)->ToTypeInstance(); bool madeBfTypeData = false;