mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Fixed break targeting switch label
This commit is contained in:
parent
ac67046afc
commit
908a76b92a
3 changed files with 25 additions and 1 deletions
|
@ -5171,6 +5171,7 @@ void BfModule::Visit(BfSwitchStatement* switchStmt)
|
|||
caseScopeData.mIsSharedTempBlock = true;
|
||||
mCurMethodState->AddScope(&caseScopeData);
|
||||
NewScopeState();
|
||||
caseScopeData.mLabel = newScope.mLabel;
|
||||
|
||||
bool hadReturn = false;
|
||||
VisitCodeBlock(switchCase->mCodeBlock, BfIRBlock(), endBlock, BfIRBlock(), true, &hadReturn, switchStmt->mLabelNode);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue