analyzer: remove unused field
authorDavid Malcolm <dmalcolm@redhat.com>
Mon, 28 Sep 2020 20:53:53 +0000 (16:53 -0400)
committerDavid Malcolm <dmalcolm@redhat.com>
Mon, 28 Sep 2020 23:51:46 +0000 (19:51 -0400)
I added this field (and the struct itself) in the rewrite of region and
value-handling (808f4dfeb3a95f50f15e71148e5c1067f90a126d), but the field
was never used.

Found by cppcheck.

gcc/analyzer/ChangeLog:
* diagnostic-manager.cc (null_assignment_sm_context::m_visitor):
Remove unused field.

gcc/analyzer/diagnostic-manager.cc

index 13dd3da..cb95a95 100644 (file)
@@ -931,7 +931,6 @@ struct null_assignment_sm_context : public sm_context
   const program_state *m_new_state;
   const gimple *m_stmt;
   const program_point *m_point;
-  state_change_visitor *m_visitor;
   checker_path *m_emission_path;
   const extrinsic_state &m_ext_state;
 };