analyzer: fix ICE with 'const void *' (PR 93457)
authorDavid Malcolm <dmalcolm@redhat.com>
Fri, 31 Jan 2020 19:05:17 +0000 (14:05 -0500)
committerDavid Malcolm <dmalcolm@redhat.com>
Fri, 31 Jan 2020 22:26:41 +0000 (17:26 -0500)
commit6775172431a8e6f0d20ac0c4946d6b5db2f46450
treedff299948c5733be7627b09e1539304ed0583eeb
parent09bea5845a50189b093e7fa8d5b840da702197d4
analyzer: fix ICE with 'const void *' (PR 93457)

gcc/analyzer/ChangeLog:
PR analyzer/93457
* region-model.cc (make_region_for_type): Use VOID_TYPE_P rather
than checking against void_type_node.

gcc/testsuite/ChangeLog:
PR analyzer/93457
* gcc.dg/analyzer/pr93457.c: New test.
gcc/analyzer/ChangeLog
gcc/analyzer/region-model.cc
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/analyzer/pr93457.c [new file with mode: 0644]