[llvm-branch-commits] [clang] [Clang] [C++26] Expansion Statements (Part 9: Control Flow) (PR #169688)
Corentin Jabot via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Jun 1 06:45:36 PDT 2026
================
@@ -751,8 +751,9 @@ StmtResult Parser::ParseLabeledStatement(ParsedAttributes &Attrs,
// identifier ':' statement
SourceLocation ColonLoc = ConsumeToken();
- LabelDecl *LD = Actions.LookupOrCreateLabel(IdentTok.getIdentifierInfo(),
- IdentTok.getLocation());
+ LabelDecl *LD = Actions.LookupOrCreateLabel(
+ IdentTok.getIdentifierInfo(), IdentTok.getLocation(), /*GnuLabelLoc=*/{},
+ /*ForLabelStmt=*/true);
----------------
cor3ntin wrote:
Am i missing something or is this always true?
https://github.com/llvm/llvm-project/pull/169688
More information about the llvm-branch-commits
mailing list