[clang] [Clang] Add __builtin_counted_by_ref builtin (PR #114495)

Yeoul Na via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 5 09:34:31 PST 2024


================
@@ -13,7 +13,10 @@ void init(void * __attribute__((pass_dynamic_object_size(0))));
 // CHECK-LABEL: define dso_local void @_ZN3foo3barC1Ev(
 // CHECK-SAME: ptr noundef nonnull align 4 dereferenceable(1) [[THIS:%.*]]) unnamed_addr #[[ATTR0:[0-9]+]] align 2 {
 // CHECK-NEXT:  entry:
-// CHECK-NEXT:    tail call void @_Z4initPvU25pass_dynamic_object_size0(ptr noundef nonnull align 4 dereferenceable(1) [[THIS]], i64 noundef -1) #[[ATTR2:[0-9]+]]
----------------
rapidsna wrote:

I also don't see why the other tests need to be updated here, except if you have to remove test cases that no longer works with new restrictions. Still, the rest of the tests and file checks should stay the same.

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


More information about the cfe-commits mailing list