[llvm-branch-commits] [clang] [Clang] [C++26] Expansion Statements (Part 9: Control Flow) (PR #169688)
Shafik Yaghmour via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Jul 9 18:55:35 PDT 2026
================
@@ -1196,8 +1221,9 @@ StmtResult Sema::ActOnStartOfSwitchStmt(SourceLocation SwitchLoc,
auto *SS = SwitchStmt::Create(Context, InitStmt, Cond.get().first, CondExpr,
LParenLoc, RParenLoc);
+ SS->setSwitchLoc(SwitchLoc);
----------------
shafik wrote:
Why move the setting of the switch location here?
https://github.com/llvm/llvm-project/pull/169688
More information about the llvm-branch-commits
mailing list