mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-14 14:24:10 +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;
|
lastNotEqBlock = notEqBB;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (lastDefaultBlock)
|
if ((lastDefaultBlock) && (switchStatement))
|
||||||
mBfIRBuilder->SetSwitchDefaultDest(switchStatement, lastDefaultBlock);
|
mBfIRBuilder->SetSwitchDefaultDest(switchStatement, lastDefaultBlock);
|
||||||
|
|
||||||
auto prevInsertBlock = mBfIRBuilder->GetInsertBlock();
|
auto prevInsertBlock = mBfIRBuilder->GetInsertBlock();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue