aboutsummaryrefslogtreecommitdiff
path: root/libjava/java
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2022-07-27 12:04:50 +0200
committerJakub Jelinek <jakub@redhat.com>2022-07-27 12:04:50 +0200
commitcc078cf85295ec5d0a63a16afbd045efac0d455e (patch)
tree5899a502b566b5dbf7d52d1e942bc97efa434cac /libjava/java
parent0bc1566dec0cab9410723c96d2ef3280fdab8e8e (diff)
downloadgcc-cc078cf85295ec5d0a63a16afbd045efac0d455e.zip
gcc-cc078cf85295ec5d0a63a16afbd045efac0d455e.tar.gz
gcc-cc078cf85295ec5d0a63a16afbd045efac0d455e.tar.bz2
opts: Add an assertion to help static analyzers [PR106332]
This function would have UB if called with empty candidates vector (accessing p[-1] where p is malloc (0) result). As analyzed in the PR, we never call it with empty vector, so this just adds an assertion to make it clear. 2022-07-27 Jakub Jelinek <jakub@redhat.com> PR middle-end/106332 * opts-common.cc (candidates_list_and_hint): Add gcc_assert that candidates is not an empty vector.
Diffstat (limited to 'libjava/java')
0 files changed, 0 insertions, 0 deletions