1
0
Fork 0
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:
Brian Fiete 2025-05-27 06:31:25 +02:00
parent 39a1f44b9c
commit 2f66bcafcc

View file

@ -1910,7 +1910,7 @@ BfLocalVariable* BfModule::HandleVariableDeclaration(BfVariableDeclaration* varD
initValue = GetDefaultTypedValue(localDef->mResolvedType); initValue = GetDefaultTypedValue(localDef->mResolvedType);
if (!localDef->mResolvedType->IsValuelessType()) 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; initHandled = true;
} }