analyzer: use switch in exploded_node::on_stmt
authorDavid Malcolm <dmalcolm@redhat.com>
Tue, 22 Sep 2020 15:29:02 +0000 (11:29 -0400)
committerDavid Malcolm <dmalcolm@redhat.com>
Wed, 23 Sep 2020 01:17:56 +0000 (21:17 -0400)
commitfefc209299236593fcc3004c874b2602a3735056
treeca0eff05d593af72951103566c15d33b8b2ae08d
parent63cd53d2f5da07856340bbea11ee09ab1125e8c0
analyzer: use switch in exploded_node::on_stmt

This patch replaces a sequence of dyn_cast to different gimple stmt
types in exploded_node::on_stmt with a switch on the gimple_code.  This
makes clearer which kinds of stmt are currently treated as no-ops, as a
precursor to handling them properly.

No functional change intended.

gcc/analyzer/ChangeLog:
* engine.cc (exploded_node::on_stmt): Replace sequence of dyn_cast
with switch.
gcc/analyzer/engine.cc