]> gcc.gnu.org Git - gcc.git/commit
analyzer: fix ICE due to type mismatch when replaying call summary [PR114473]
authorDavid Malcolm <dmalcolm@redhat.com>
Wed, 27 Mar 2024 22:26:51 +0000 (18:26 -0400)
committerDavid Malcolm <dmalcolm@redhat.com>
Wed, 27 Mar 2024 22:26:51 +0000 (18:26 -0400)
commitfdd59818e2abf6043f4d45aeb157e95956c71088
treebd79c8d9da3e4b0fae6c44766e16c4f670db2ca9
parentf89c83aa139521804241d21e006557ac5a421f51
analyzer: fix ICE due to type mismatch when replaying call summary [PR114473]

gcc/analyzer/ChangeLog:
PR analyzer/114473
* call-summary.cc
(call_summary_replay::convert_svalue_from_summary): Assert that
the types match.
(call_summary_replay::convert_region_from_summary): Likewise.
(call_summary_replay::convert_region_from_summary_1): Add missing
cast for the deref of RK_SYMBOLIC case.

gcc/testsuite/ChangeLog:
PR analyzer/114473
* gcc.dg/analyzer/call-summaries-pr114473.c: New test.

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
gcc/analyzer/call-summary.cc
gcc/testsuite/gcc.dg/analyzer/call-summaries-pr114473.c [new file with mode: 0644]
This page took 0.066109 seconds and 5 git commands to generate.