bwendling wrote: > We should probably apply the same fix to CountCountedByAttrs. > > Along those lines, we should be able to handle: > > ``` > struct bar { > int count; > int array[] __attribute__((counted_by(count))); > }; > struct foo { struct bar x; }; > void init(void * __attribute__((pass_dynamic_object_size(0)))); > void test1(struct foo *p) { > init(p); > } > ```
I can support that. I'll add it as a testcase. https://github.com/llvm/llvm-project/pull/89126 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits