mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42:21 +02:00
Fixed SetSwitchDefaultDest issue
This commit is contained in:
parent
a14544efa6
commit
fb2e70c04a
1 changed files with 1 additions and 1 deletions
|
@ -4608,7 +4608,7 @@ void BfModule::Visit(BfSwitchStatement* switchStmt)
|
|||
lastNotEqBlock = notEqBB;
|
||||
}
|
||||
|
||||
if (lastDefaultBlock)
|
||||
if ((lastDefaultBlock) && (switchStatement))
|
||||
mBfIRBuilder->SetSwitchDefaultDest(switchStatement, lastDefaultBlock);
|
||||
|
||||
auto prevInsertBlock = mBfIRBuilder->GetInsertBlock();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue