public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [committed] analyzer: remove unused field
@ 2020-09-28 23:55 David Malcolm
  0 siblings, 0 replies; only message in thread
From: David Malcolm @ 2020-09-28 23:55 UTC (permalink / raw)
  To: gcc-patches

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.

Successfully bootstrapped & regrtested on x86_64-pc-linux-gnu.
Pushed to master as 20d16d61dd22a9bfb66d5c4a383d193037e8f16d.

gcc/analyzer/ChangeLog:
	* diagnostic-manager.cc (null_assignment_sm_context::m_visitor):
	Remove unused field.
---
 gcc/analyzer/diagnostic-manager.cc | 1 -
 1 file changed, 1 deletion(-)

diff --git a/gcc/analyzer/diagnostic-manager.cc b/gcc/analyzer/diagnostic-manager.cc
index 13dd3da606f..cb95a95ff0b 100644
--- a/gcc/analyzer/diagnostic-manager.cc
+++ b/gcc/analyzer/diagnostic-manager.cc
@@ -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;
 };
-- 
2.26.2


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-09-28 23:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-28 23:55 [committed] analyzer: remove unused field David Malcolm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).