committed: analyzer: remove duplicated vfuncs
authorDavid Malcolm <dmalcolm@redhat.com>
Wed, 10 Mar 2021 17:00:34 +0000 (12:00 -0500)
committerDavid Malcolm <dmalcolm@redhat.com>
Wed, 10 Mar 2021 17:00:34 +0000 (12:00 -0500)
commit6b78729186060cf96c0b4e0f3eacf155f4e90376
treed31b56ded229a284bae4d6835846301abf9b2663
parent5bf998275aff311b9804c1de944a88c219f35db6
committed: analyzer: remove duplicated vfuncs

Implement dyn_cast_callgraph_superedge once in callgraph_superedge,
rather than twice in the two subclasses.

Spotted whilst working on a patch for call summaries.

gcc/analyzer/ChangeLog:
* supergraph.h
(callgraph_superedge::dyn_cast_callgraph_superedge): New.
(call_superedge::dyn_cast_callgraph_superedge): Delete.
(return_superedge::dyn_cast_callgraph_superedge): Delete.
gcc/analyzer/supergraph.h