[clang] [Clang] Initialize bypassed variables w/ trivial-auto-var-init (PR #181937)

Nick Desaulniers via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 22 14:52:01 PDT 2026


================
@@ -114,19 +110,14 @@ void test_goto(int i) {
   used(oops);
 }
 
-// This type of code is currently not handled by zero / pattern initialization.
-// The test will break when that is fixed.
+// Bypassed variables are initialized at the case target.
----------------
nickdesaulniers wrote:

```suggestion
// Bypassed variables are initialized before the switch dispatch.
```

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


More information about the cfe-commits mailing list