https://github.com/efriedma-quic commented:

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);
}
```

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

Reply via email to