[clang] [CIR] Upstream support for switch statements case kinds (PR #138003)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Thu May 1 11:10:29 PDT 2025
================
@@ -91,12 +92,40 @@ void sw2(int a) {
// OGCG: [[SW_EPILOG]]:
// OGCG: ret void
+void sw3(int a) {
----------------
andykaylor wrote:
Please add tests for the GNU range case, including one where it would be in the same group with other cases, like this:
```
void f(int x) {
switch (x) {
case 1:
case 2:
case 3 ... 6:
case 7:
break;
default:
break;
}
}
```
https://github.com/llvm/llvm-project/pull/138003
More information about the cfe-commits
mailing list