diff options
author | David Malcolm <dmalcolm@redhat.com> | 2020-01-09 10:12:59 -0500 |
---|---|---|
committer | David Malcolm <dmalcolm@redhat.com> | 2020-01-14 20:58:19 -0500 |
commit | 32077b693df8e3ed0424031a322df23822bf2f7e (patch) | |
tree | 1dc1c79a166e7758871acc06b3586ed4c2e30979 /gcc/c/c-decl.c | |
parent | 7fb3669edb4aa3c8313ddf8b914b86a1623e0954 (diff) | |
download | gcc-32077b693df8e3ed0424031a322df23822bf2f7e.zip gcc-32077b693df8e3ed0424031a322df23822bf2f7e.tar.gz gcc-32077b693df8e3ed0424031a322df23822bf2f7e.tar.bz2 |
analyzer: fix ICE on METHOD_TYPE (PR 93212)
PR analyzer/93212 reports an ICE when attempting to use -fanalyzer
on a C++ source file. That isn't supported yet, but the fix is
trivial (handling METHOD_TYPE as well as FUNCTION_TYPE).
gcc/analyzer/ChangeLog:
PR analyzer/93212
* region-model.cc (make_region_for_type): Use
FUNC_OR_METHOD_TYPE_P rather than comparing against FUNCTION_TYPE.
* region-model.h (function_region::function_region): Likewise.
Diffstat (limited to 'gcc/c/c-decl.c')
0 files changed, 0 insertions, 0 deletions