diff options
author | Nathan Sidwell <nathan@acm.org> | 2021-01-21 10:37:23 -0800 |
---|---|---|
committer | Nathan Sidwell <nathan@acm.org> | 2021-01-21 10:41:35 -0800 |
commit | 7944753fad501194eb8a828d6b74270e79d14a4d (patch) | |
tree | 9647dba777aff2103672565f22337af0ff37d769 /gcc/tree-data-ref.c | |
parent | 0fb7aa205afebe178c06683037ccd4c41104337a (diff) | |
download | gcc-7944753fad501194eb8a828d6b74270e79d14a4d.zip gcc-7944753fad501194eb8a828d6b74270e79d14a4d.tar.gz gcc-7944753fad501194eb8a828d6b74270e79d14a4d.tar.bz2 |
c++: Fix null this pointer [PR 98624]
One may not use a null this pointer to invoke a static member
function. This fixes the remaining ubsan errors found with an
ubsan bootstrap.
PR c++/98624
gcc/cp/
* module.cc (depset::hash::find_dependencies): Add
module arg.
(trees_out::core_vals): Check state before calling
write_location.
(sort_cluster, module_state::write): Adjust
find_dependencies call.
Diffstat (limited to 'gcc/tree-data-ref.c')
0 files changed, 0 insertions, 0 deletions