Hi, On Thu, Apr 17 2025, Andrew Pinski wrote: > Here we had: > node = node; > Which does nothing so let's remove it. > > gcc/ChangeLog: > > * ipa-icf.cc (sem_function::init): Remove assignment of node from > itself.
I'm not sure if you meant to push this as obvious or whether you were looking for an approval. In the latter case, please go ahead and commit the patch. Thanks, Martin > > Signed-off-by: Andrew Pinski <quic_apin...@quicinc.com> > --- > gcc/ipa-icf.cc | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/gcc/ipa-icf.cc b/gcc/ipa-icf.cc > index 3fccc620a82..c273032cae2 100644 > --- a/gcc/ipa-icf.cc > +++ b/gcc/ipa-icf.cc > @@ -1367,7 +1367,6 @@ sem_function::init (ipa_icf_gimple::func_checker > *checker) > gcc_assert (SSANAMES (func)); > > ssa_names_size = SSANAMES (func)->length (); > - node = node; > > decl = fndecl; > region_tree = func->eh->region_tree; > -- > 2.43.0