aboutsummaryrefslogtreecommitdiff
path: root/gcc/print-rtl.c
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2020-06-10 00:15:28 +0100
committerIain Sandoe <iain@sandoe.co.uk>2020-06-10 20:02:45 +0100
commita9eec9625ea7165292958be04899b057804192fb (patch)
tree5ece325dccfd3d12ba7854207de18b21bb2a1451 /gcc/print-rtl.c
parenta2c2cee92e5defff9bf23d3b1184ee96e57e5fdd (diff)
downloadgcc-a9eec9625ea7165292958be04899b057804192fb.zip
gcc-a9eec9625ea7165292958be04899b057804192fb.tar.gz
gcc-a9eec9625ea7165292958be04899b057804192fb.tar.bz2
coroutines: Make call argument handling more robust [PR95440]
build_new_method_call is supposed to be able to handle a null arguments list pointer (when the method has no parms). There were a couple of places where uses of the argument list pointer were not defended against NULL. gcc/cp/ChangeLog: PR c++/95440 * call.c (add_candidates): Use vec_safe_length() for testing the arguments list. (build_new_method_call_1): Use vec_safe_is_empty() when checking for an empty args list. gcc/testsuite/ChangeLog: PR c++/95440 * g++.dg/coroutines/pr95440.C: New test.
Diffstat (limited to 'gcc/print-rtl.c')
0 files changed, 0 insertions, 0 deletions