1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Fixed condbr on aliased mixin param value

This commit is contained in:
Brian Fiete 2022-01-25 06:16:57 -05:00
parent f6e8c64a20
commit 91e856fc0b

View file

@ -16217,8 +16217,14 @@ void BfExprEvaluator::InjectMixin(BfAstNode* targetSrc, BfTypedValue target, boo
mModule->mBfIRBuilder->DbgInsertDeclare(aliasValue, diVariable);
else
{
if (newLocalVar->mResolvedType->IsBoolean())
{
// Fix case of remote condbr referencing
newLocalVar->mAddr = mModule->CreateAlloca(newLocalVar->mResolvedType);
mModule->mBfIRBuilder->CreateStore(newLocalVar->mValue, newLocalVar->mAddr);
}
mModule->mBfIRBuilder->DbgInsertValueIntrinsic(aliasValue, diVariable);
//mModule->mBfIRBuilder->DbgInsertValueIntrinsic(newLocalVar->mValue, diVariable);
}
}
}