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

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 31 10:46:50 PDT 2026


================
@@ -7,7 +7,7 @@
 // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -O2 -fcxx-exceptions -fexceptions -fclangir -emit-cir %s -o %t-eh.cir
 // RUN: FileCheck --input-file=%t-eh.cir %s --check-prefix=CIR-EH
 // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -O2 -fcxx-exceptions -fexceptions -fclangir -emit-llvm -disable-llvm-passes %s -o %t-eh.ll
-// RUN: FileCheck --input-file=%t-eh.ll %s --check-prefix=LLVM-EH
+// RUN: FileCheck --input-file=%t-eh.ll %s --check-prefixes=LLVM-EH
----------------
andykaylor wrote:

There's no substantial difference between O1 and O2 for the purposes of this test. We check that optimizations aren't disabled before emitting the lifetime markers. Otherwise, I think it just changes the pipeline that gets built, and since this test is disabling LLVM passes that doesn't matter. I'll change the checks to O1 because that's the minimum needed here.

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


More information about the cfe-commits mailing list