================
@@ -3281,6 +3281,10 @@ static Scope *FindLabeledBreakContinueScope(Sema &S,
Scope *CurScope,
SourceLocation LabelLoc,
bool IsContinue) {
assert(Target && "not a named break/continue?");
+
+ S.MarkAnyDeclReferenced(Target->getLocation(), Target,
+ /*MightBeOdrUse=*/false);
----------------
Sirraide wrote:
```suggestion
Target->markUsed(S.Context);
```
https://github.com/llvm/llvm-project/pull/166033
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits