File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -10510,7 +10510,7 @@ ParseNodePtr Parser::ParseStatement()
10510
10510
{
10511
10511
this ->GetScanner ()->Scan ();
10512
10512
// Check if label is found within the current label id list.
10513
- auto checkLabelList = [&](LabelId* list, OpCode checkOp )
10513
+ auto checkLabelList = [&](LabelId* list, StmtNest* checkStmtOp )
10514
10514
{
10515
10515
for (LabelId* pLabelId = list; pLabelId; pLabelId = pLabelId->next )
10516
10516
{
@@ -10520,7 +10520,7 @@ ParseNodePtr Parser::ParseStatement()
10520
10520
// break out of any statement, but we can only
10521
10521
// continue loops.
10522
10522
if (fnop == fnopContinue &&
10523
- !(ParseNode::Grfnop (checkOp ) & fnop))
10523
+ !(ParseNode::Grfnop (checkStmtOp-> op ) & fnop))
10524
10524
{
10525
10525
Error (ERRbadContinue);
10526
10526
}
@@ -10530,11 +10530,11 @@ ParseNodePtr Parser::ParseStatement()
10530
10530
return false ;
10531
10531
};
10532
10532
10533
- if (checkLabelList (pLabelIdList, m_pstmtCur-> op )) goto LNeedTerminator;
10533
+ if (checkLabelList (pLabelIdList, m_pstmtCur)) goto LNeedTerminator;
10534
10534
10535
10535
for (pstmt = m_pstmtCur; pstmt; pstmt = pstmt->pstmtOuter )
10536
10536
{
10537
- if (checkLabelList (pstmt->pLabelId , pstmt-> op )) goto LNeedTerminator;
10537
+ if (checkLabelList (pstmt->pLabelId , pstmt)) goto LNeedTerminator;
10538
10538
}
10539
10539
}
10540
10540
Error (ERRnoLabel);
You can’t perform that action at this time.
0 commit comments