[clang] [CIR] Allow lifetime markers before begin_catch in a try handler (PR #219600)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 31 07:15:17 PDT 2026


================
@@ -387,7 +387,7 @@ static void initCatchParam(CIRGenFunction &cgf, CIRGenBuilderTy &builder,
   CanQualType catchType =
       cgf.cgm.getASTContext().getCanonicalType(catchParam.getType());
   cir::InitCatchKind kind;
-  bool shouldInitFromExnDirectly;
+  bool shouldInitFromExnDirectly = false;
----------------
erichkeane wrote:

Yikes!  A bit surprised this didn't warn anywhere...

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


More information about the cfe-commits mailing list