diff options
author | Andrew Pinski <quic_apinski@quicinc.com> | 2025-01-09 12:53:27 -0800 |
---|---|---|
committer | Andrew Pinski <quic_apinski@quicinc.com> | 2025-04-21 08:23:07 -0700 |
commit | d508d24282c6a8172be2abcb2223232f452b667f (patch) | |
tree | 7169aaeeed9d8ab89e3ab8afa3c0a18845f0220b /gcc/vmsdbg.h | |
parent | a619a128c992b2121a862b8470960ae751d25db6 (diff) | |
download | gcc-master.zip gcc-master.tar.gz gcc-master.tar.bz2 |
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 (array_slice::begin): Assert that the
slice is valid.
(array_slice::end): Likewise.
Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
Diffstat (limited to 'gcc/vmsdbg.h')
0 files changed, 0 insertions, 0 deletions