diff options
author | Marek Polacek <polacek@redhat.com> | 2020-01-25 19:02:11 -0500 |
---|---|---|
committer | Marek Polacek <polacek@redhat.com> | 2020-01-26 16:28:10 -0500 |
commit | ab6cd364eda21d3d24a4df0072c588cc68ff61e0 (patch) | |
tree | ab08fa95625145dba6e879f6cc3180f3cae833b0 /gcc/cp/except.c | |
parent | 8022264265dd39887a1723eeda8ae445afad1fde (diff) | |
download | gcc-ab6cd364eda21d3d24a4df0072c588cc68ff61e0.zip gcc-ab6cd364eda21d3d24a4df0072c588cc68ff61e0.tar.gz gcc-ab6cd364eda21d3d24a4df0072c588cc68ff61e0.tar.bz2 |
sanopt: Avoid crash on anonymous parameter [PR93436]
Here we crash when using -fsanitize=address -fdump-tree-sanopt because
the dumping code uses IDENTIFIER_POINTER on a null DECL_NAME. Instead,
we can print "<anonymous>" in such a case. Or we could avoid printing
that diagnostic altogether.
2020-01-26 Marek Polacek <polacek@redhat.com>
PR tree-optimization/93436
* sanopt.c (sanitize_rewrite_addressable_params): Avoid crash on
null DECL_NAME.
Diffstat (limited to 'gcc/cp/except.c')
0 files changed, 0 insertions, 0 deletions