mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-12 05:14:10 +02:00
Fixed IR type population issue with phi from const structs
This commit is contained in:
parent
f7abec2283
commit
e307448363
1 changed files with 1 additions and 0 deletions
|
@ -19095,6 +19095,7 @@ void BfExprEvaluator::Visit(BfConditionalExpression* condExpr)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
mModule->mBfIRBuilder->PopulateType(trueValue.mType);
|
||||||
phi = mModule->mBfIRBuilder->CreatePhi(mModule->mBfIRBuilder->MapType(trueValue.mType), 2);
|
phi = mModule->mBfIRBuilder->CreatePhi(mModule->mBfIRBuilder->MapType(trueValue.mType), 2);
|
||||||
mModule->mBfIRBuilder->AddPhiIncoming(phi, trueValue.mValue, trueBlockPos);
|
mModule->mBfIRBuilder->AddPhiIncoming(phi, trueValue.mValue, trueBlockPos);
|
||||||
mModule->mBfIRBuilder->AddPhiIncoming(phi, falseValue.mValue, falseBlockPos);
|
mModule->mBfIRBuilder->AddPhiIncoming(phi, falseValue.mValue, falseBlockPos);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue