1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 03:52:19 +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) if (isRef)
{ {
initValue = MakeAddressable(initValue); initValue = MakeAddressable(initValue, true, true);
if ((initValue) && (!initValue.mType->IsValuelessType())) if ((initValue) && (!initValue.mType->IsValuelessType()))
mBfIRBuilder->CreateStore(initValue.mValue, localVar->mAddr); mBfIRBuilder->CreateStore(initValue.mValue, localVar->mAddr);
} }