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

Eli Friedman via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 2 15:51:36 PDT 2026


================
@@ -299,6 +301,16 @@ class CodeGenFunction : public CodeGenTypeCache {
   // because of jumps.
   VarBypassDetector Bypasses;
 
+  // Map from bypassed VarDecl to its alloca address, for per-target init.
+  llvm::SmallVector<std::pair<const VarDecl *, Address>, 4> BypassedVarInits;
+
+  struct BypassingForwardGoto {
+    llvm::BasicBlock *Block;
----------------
efriedma-quic wrote:

`llvm::AssertingVH<llvm::BasicBlock> Block;`

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


More information about the cfe-commits mailing list