1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 03:28:20 +02:00

Fixed var ref on out for pointers

This commit is contained in:
Brian Fiete 2025-02-23 14:17:10 -08:00
parent 7f3b3f2e09
commit c495d4434a

View file

@ -16170,7 +16170,7 @@ BfTypedValue BfModule::CreateOutVariable(BfAstNode* refNode, BfVariableDeclarati
if (isRef)
{
initValue = MakeAddressable(initValue);
initValue = MakeAddressable(initValue, true, true);
if ((initValue) && (!initValue.mType->IsValuelessType()))
mBfIRBuilder->CreateStore(initValue.mValue, localVar->mAddr);
}