mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Fixed 'when' on switch payload case
This commit is contained in:
parent
864d5e9d24
commit
d36d076e95
2 changed files with 34 additions and 1 deletions
|
@ -4950,6 +4950,10 @@ void BfModule::Visit(BfSwitchStatement* switchStmt)
|
|||
mBfIRBuilder->SetInsertPoint(notEqBB);
|
||||
}
|
||||
}
|
||||
else if (whenExpr != NULL)
|
||||
{
|
||||
mayHaveMatch = true;
|
||||
}
|
||||
|
||||
if (notEqBB)
|
||||
lastNotEqBlock = notEqBB;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue