[clang] [clang] Mark labels referenced when used in named break or continue (PR #166033)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 3 05:01:56 PST 2025
================
@@ -3352,6 +3354,8 @@ StmtResult Sema::ActOnBreakStmt(SourceLocation BreakLoc, Scope *CurScope,
LabelDecl *Target, SourceLocation LabelLoc) {
Scope *S;
if (Target) {
+ MarkAnyDeclReferenced(Target->getLocation(), Target,
----------------
Sirraide wrote:
Same here
https://github.com/llvm/llvm-project/pull/166033
More information about the cfe-commits
mailing list