[clang] [CIR]/[OGCG] Fix handling of bool-backed-scoped-enums (PR #214084)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 5 04:14:21 PDT 2026


================
@@ -47,3 +47,21 @@ E b(int x) { return (E)x; }
 
 } // namespace D
 } // namespace dr2338
+
+namespace switchOnEnum {
+enum class E : bool { Zero, One };
----------------
AaronBallman wrote:

Can you add a `_BitInt` test as well to show we fix that issue too?

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


More information about the cfe-commits mailing list