c++: fix -fsanitize-coverage=trace-pc ICE [PR101331]
authorMartin Liska <mliska@suse.cz>
Thu, 12 Aug 2021 15:49:14 +0000 (17:49 +0200)
committerMartin Liska <mliska@suse.cz>
Mon, 13 Sep 2021 13:34:23 +0000 (15:34 +0200)
commit90ac6edc3c0123b6cf975781f70c8517db84bd63
tree05111450bc6698e5bdd8fabbe82e195e2ce77eae
parenta7f59856ea8ea02d6f09d2e9e793ce2800ebbe4b
c++: fix -fsanitize-coverage=trace-pc ICE [PR101331]

PR c++/101331

gcc/ChangeLog:

* asan.h (sanitize_coverage_p): Handle when fn == NULL.

gcc/testsuite/ChangeLog:

* g++.dg/pr101331.C: New test.
gcc/asan.h
gcc/testsuite/g++.dg/pr101331.C [new file with mode: 0644]