mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Switch fix
This commit is contained in:
parent
a7acc5ebb3
commit
27e2ed1598
1 changed files with 1 additions and 3 deletions
|
@ -4128,9 +4128,7 @@ void BfModule::Visit(BfSwitchStatement* switchStmt)
|
|||
newScope.mInnerIsConditional = true;
|
||||
newScope.mCloseNode = switchStmt;
|
||||
if (switchStmt->mCloseBrace != NULL)
|
||||
newScope.mCloseNode = switchStmt->mCloseBrace;
|
||||
if (switchStmt->mLabelNode != NULL)
|
||||
newScope.mLabelNode = switchStmt->mLabelNode->mLabel;
|
||||
newScope.mCloseNode = switchStmt->mCloseBrace;
|
||||
mCurMethodState->AddScope(&newScope);
|
||||
NewScopeState();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue