Re: [PATCH] Add assert to array_slice::begin/end

2025-04-21 Thread Richard Biener
On Sat, Apr 19, 2025 at 5:04 PM Andrew Pinski wrote: > > So while debugging PR 118320, I found it was useful to have > an assert inside array_slice::begin/end that the array slice isvalid > rather than getting an segfault. This adds an assert that is only > enabled for checking. > > OK? Bootstrapp

[PATCH] Add assert to array_slice::begin/end

2025-04-19 Thread Andrew Pinski
So while debugging PR 118320, I found it was useful to have an assert inside array_slice::begin/end that the array slice isvalid rather than getting an segfault. This adds an assert that is only enabled for checking. OK? Bootstrapped and tested on x86_64-linux-gnu. gcc/ChangeLog: * vec.h