[clang] [CIR] Don't create EH paths for lifetime-marker-only cleanups (PR #224829)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 22 11:07:59 PDT 2026


================
@@ -155,15 +153,11 @@ void eh_cleanup() {
 // CIR-EH:           cir.lifetime.end %[[X]] : !cir.ptr<!s32i>
 // CIR-EH:         }
 
-// LLVM-EH-LABEL: define{{.*}} void @_Z10eh_cleanupv()
+// LLVM-EH-LABEL: define{{.*}} void @_Z10eh_cleanupv() #{{[0-9]+}} {
----------------
andykaylor wrote:

This change is unnecessary. Let's not introduce a dependency on the attribute representation when we don't need to check the attribute. It the purpose was to verify that we didn't emit a personality function, use `LLVM-EH-NOT` on the next line. That makes it clear what we're really testing.

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


More information about the cfe-commits mailing list