Skip to content

Commit

Permalink
linkAt()
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Jun 27, 2024
1 parent c77ac26 commit 4a252a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/forwardanalyzer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@ namespace {
} else if (Token::simpleMatch(tok, "switch (")) {
if (updateRecursive(tok->next()->astOperand2()) == Progress::Break)
return Break();
return updateScope(tok->linkAt(1)->next()->link());
return updateScope(tok->linkAt(1)->linkAt(1));
} else if (Token* callTok = callExpr(tok)) {
// TODO: Dont traverse tokens a second time
if (start != callTok && tok != callTok && updateRecursive(callTok->astOperand1()) == Progress::Break)
Expand Down

0 comments on commit 4a252a7

Please sign in to comment.