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:
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)
|
||||
{
|
||||
mBfIRBuilder->PopulateType(wantType);
|
||||
auto result = BfTypedValue(irValue, wantType, true);
|
||||
if (!wantType->IsComposite())
|
||||
result = LoadValue(result);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue