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
|
@ -3520,7 +3520,6 @@ void BeMCContext::CreateCondBr(BeMCBlock* mcBlock, BeMCOperand& testVal, const B
|
||||||
{
|
{
|
||||||
// Beef-specific: assuming CMP results aren't stomped
|
// Beef-specific: assuming CMP results aren't stomped
|
||||||
auto& cmpResult = mCmpResults[testVal.mCmpResultIdx];
|
auto& cmpResult = mCmpResults[testVal.mCmpResultIdx];
|
||||||
AllocInst(BeMCInstKind_CondBr, trueBlock, BeMCOperand::FromCmpKind(cmpResult.mCmpKind));
|
|
||||||
if (cmpResult.mInverted)
|
if (cmpResult.mInverted)
|
||||||
{
|
{
|
||||||
AllocInst(BeMCInstKind_CondBr, falseBlock, BeMCOperand::FromCmpKind(cmpResult.mCmpKind));
|
AllocInst(BeMCInstKind_CondBr, falseBlock, BeMCOperand::FromCmpKind(cmpResult.mCmpKind));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue