1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 03:52:19 +02:00

Fixed a global variable type population issue

This commit is contained in:
Brian Fiete 2020-12-24 11:31:40 -08:00
parent f6877d98f0
commit 2ea366ce89

View file

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