Requestify FallthroughStmt source and destination lookup

Follow a similar pattern to BreakTargetRequest
and ContinueTargetRequest.
This commit is contained in:
Hamish Knight
2024-08-14 19:59:05 +01:00
parent 4470814db8
commit 55aed16ee6
12 changed files with 103 additions and 66 deletions

View File

@@ -1794,7 +1794,7 @@ private:
}
ASTNode visitFallthroughStmt(FallthroughStmt *fallthroughStmt) {
if (checkFallthroughStmt(context.getAsDeclContext(), fallthroughStmt))
if (checkFallthroughStmt(fallthroughStmt))
hadError = true;
return fallthroughStmt;
}