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