mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
CondBr fix
This commit is contained in:
parent
55298ee884
commit
76c47fde2e
1 changed files with 1 additions and 2 deletions
|
@ -3519,8 +3519,7 @@ void BeMCContext::CreateCondBr(BeMCBlock* mcBlock, BeMCOperand& testVal, const B
|
|||
else if (testVal.mKind == BeMCOperandKind_CmpResult)
|
||||
{
|
||||
// Beef-specific: assuming CMP results aren't stomped
|
||||
auto& cmpResult = mCmpResults[testVal.mCmpResultIdx];
|
||||
AllocInst(BeMCInstKind_CondBr, trueBlock, BeMCOperand::FromCmpKind(cmpResult.mCmpKind));
|
||||
auto& cmpResult = mCmpResults[testVal.mCmpResultIdx];
|
||||
if (cmpResult.mInverted)
|
||||
{
|
||||
AllocInst(BeMCInstKind_CondBr, falseBlock, BeMCOperand::FromCmpKind(cmpResult.mCmpKind));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue