mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Fixed a global variable type population issue
This commit is contained in:
parent
f6877d98f0
commit
2ea366ce89
1 changed files with 1 additions and 0 deletions
|
@ -10494,6 +10494,7 @@ BfTypedValue BfModule::GetTypedValueFromConstant(BfConstant* constant, BfIRConst
|
||||||
|
|
||||||
if (constant->mConstType == BfConstType_GlobalVar)
|
if (constant->mConstType == BfConstType_GlobalVar)
|
||||||
{
|
{
|
||||||
|
mBfIRBuilder->PopulateType(wantType);
|
||||||
auto result = BfTypedValue(irValue, wantType, true);
|
auto result = BfTypedValue(irValue, wantType, true);
|
||||||
if (!wantType->IsComposite())
|
if (!wantType->IsComposite())
|
||||||
result = LoadValue(result);
|
result = LoadValue(result);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue