From 33b3af3fd4819a7fa14acc9aebd100faffdb9667 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Mon, 18 Nov 2019 14:04:57 +0100 Subject: [PATCH] Unset m_checker in sem_function::init. 2019-11-18 Martin Liska PR ipa/92525 * ipa-icf.c (sem_function::init): Unset m_checker at the end of the function. From-SVN: r278405 --- gcc/ChangeLog | 6 ++++++ gcc/ipa-icf.c | 2 ++ 2 files changed, 8 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b2408021a0b..a7c4d61d654 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2019-11-18 Martin Liska + + PR ipa/92525 + * ipa-icf.c (sem_function::init): Unset m_checker + at the end of the function. + 2019-11-18 Richard Biener PR tree-optimization/92558 diff --git a/gcc/ipa-icf.c b/gcc/ipa-icf.c index 15aac1cdbe6..7762f939391 100644 --- a/gcc/ipa-icf.c +++ b/gcc/ipa-icf.c @@ -1410,6 +1410,8 @@ sem_function::init (ipa_icf_gimple::func_checker *checker) hstate.add_flag (cnode->thunk.virtual_offset_p); gcode_hash = hstate.end (); } + + m_checker = NULL; } /* Improve accumulated hash for HSTATE based on a gimple statement STMT. */ -- 2.30.2