[clang] [CIR] Add the ability to detect enum argument for switch op (PR #172236)

Bruno Cardoso Lopes via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 18 12:49:25 PST 2025


================
@@ -1216,7 +1216,8 @@ def CIR_SwitchOp : CIR_Op<"switch", [
 
   let arguments = (ins 
     CIR_IntType:$condition,
-    UnitAttr:$allEnumCasesCovered
+    UnitAttr:$allEnumCasesCovered,
+    UnitAttr:$handling_enum
----------------
bcardosolopes wrote:

Another nit here: stick to one of the styles, the previous arg is using camelCase, the new one isn't.

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


More information about the cfe-commits mailing list