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);