================
@@ -3315,6 +3315,8 @@ StmtResult Sema::ActOnContinueStmt(SourceLocation 
ContinueLoc, Scope *CurScope,
                                    LabelDecl *Target, SourceLocation LabelLoc) 
{
   Scope *S;
   if (Target) {
+    MarkAnyDeclReferenced(Target->getLocation(), Target,
+                          /*MightBeOdrUse=*/false);
----------------
Sirraide wrote:

```suggestion
    Target->markUsed(Context);
```
Can you also move this into `FindLabeledBreakContinueScope()` instead?

https://github.com/llvm/llvm-project/pull/166033
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to