mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 03:28:20 +02:00
Static local IR populateType fix
This commit is contained in:
parent
39a1f44b9c
commit
2f66bcafcc
1 changed files with 1 additions and 1 deletions
|
@ -1910,7 +1910,7 @@ BfLocalVariable* BfModule::HandleVariableDeclaration(BfVariableDeclaration* varD
|
|||
initValue = GetDefaultTypedValue(localDef->mResolvedType);
|
||||
|
||||
if (!localDef->mResolvedType->IsValuelessType())
|
||||
localDef->mAddr = mBfIRBuilder->CreateGlobalVariable(mBfIRBuilder->MapType(localDef->mResolvedType), false, BfIRLinkageType_Internal, initValue.mValue, name);;
|
||||
localDef->mAddr = mBfIRBuilder->CreateGlobalVariable(mBfIRBuilder->MapType(localDef->mResolvedType, BfIRPopulateType_Full), false, BfIRLinkageType_Internal, initValue.mValue, name);;
|
||||
initHandled = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue