1 parent 3b5ddfc commit 09d75c1Copy full SHA for 09d75c1
1 file changed
lib/forwardanalyzer.cpp
@@ -144,7 +144,7 @@ namespace {
144
// If we are in a loop then jump to the end
145
if (out)
146
*out = loopEnds.back();
147
- } else if (Token::Match(tok, "return|throw")) {
+ } else if (Token::Match(tok, "return|co_return|throw")) {
148
traverseRecursive(tok->astOperand2(), f, traverseUnknown);
149
traverseRecursive(tok->astOperand1(), f, traverseUnknown);
150
return Break(Analyzer::Terminate::Escape);
0 commit comments