[clang] [CIR] Upstream support for switch statements case kinds (PR #138003)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Mon May 5 11:57:36 PDT 2025


================
@@ -112,24 +141,31 @@ int sw4(int a) {
 // CIR-NEXT:         }
 // CIR-NEXT:         cir.yield
 // CIR-NEXT:       }
+// CIR-NEXT:       cir.case(default, []) {
+// CIR-NEXT:         %5 = cir.const #cir.int<2> : !s32i
----------------
andykaylor wrote:

Please update this test (throughout the file) to use pattern matching in place of the hard-coded identifiers.

https://github.com/llvm/llvm-project/pull/138003


More information about the cfe-commits mailing list