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:
parent
7f3b3f2e09
commit
c495d4434a
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue