kees added a comment.

In D144136#4651030 <https://reviews.llvm.org/D144136#4651030>, @void wrote:

> or can it be simplified into something like this:
>
>   array-bounds.c:341:2: remark: accessing flexible array, counted by 'count', 
> with 'index - 1' [-Rarray-bounds]
>      341 |         TEST_ACCESS(p, array, index, SHOULD_TRAP);
>          |         ^

Yeah, this is totally enough. Thanks!


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D144136/new/

https://reviews.llvm.org/D144136

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to