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:
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)
|
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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue