analyzer: fix ICE on METHOD_TYPE (PR 93212)
authorDavid Malcolm <dmalcolm@redhat.com>
Thu, 9 Jan 2020 15:12:59 +0000 (10:12 -0500)
committerDavid Malcolm <dmalcolm@redhat.com>
Wed, 15 Jan 2020 01:58:19 +0000 (20:58 -0500)
commit32077b693df8e3ed0424031a322df23822bf2f7e
tree1dc1c79a166e7758871acc06b3586ed4c2e30979
parent7fb3669edb4aa3c8313ddf8b914b86a1623e0954
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.
gcc/analyzer/ChangeLog
gcc/analyzer/region-model.cc
gcc/analyzer/region-model.h