From 2ea366ce8904aa456d044617c302d9aa3fcdf796 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Thu, 24 Dec 2020 11:31:40 -0800 Subject: [PATCH] Fixed a global variable type population issue --- IDEHelper/Compiler/BfModule.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/IDEHelper/Compiler/BfModule.cpp b/IDEHelper/Compiler/BfModule.cpp index 0be7840b..fa76e0ca 100644 --- a/IDEHelper/Compiler/BfModule.cpp +++ b/IDEHelper/Compiler/BfModule.cpp @@ -10494,6 +10494,7 @@ BfTypedValue BfModule::GetTypedValueFromConstant(BfConstant* constant, BfIRConst if (constant->mConstType == BfConstType_GlobalVar) { + mBfIRBuilder->PopulateType(wantType); auto result = BfTypedValue(irValue, wantType, true); if (!wantType->IsComposite()) result = LoadValue(result);