[clang] [CIR] Represent Cleanups with Cleanup scopes (PR #180276)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 18 11:13:05 PST 2026


================
@@ -98,6 +98,7 @@ void test_array_destructor() {
 // CIR:   }
 
 // LLVM: define{{.*}} void @_Z21test_array_destructorv()
+// LLVM:   %[[ARR_CUR:.*]] = alloca ptr, i64 1
----------------
andykaylor wrote:

Do you know why the allocas moved in these tests?

I assume there is now a cleanup scope op being emitted for all of the modified tests. It would be nice to see the checks updated to reflect that.

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


More information about the cfe-commits mailing list