From: David Malcolm Date: Thu, 9 Sep 2021 18:32:14 +0000 (-0400) Subject: analyzer: fix ICE in sm_state_map::dump when dumping trees X-Git-Tag: upstream/12.2.0~3798 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=347682ea4637c57c386908d6e1aa52e4efaace53;p=platform%2Fupstream%2Fgcc.git analyzer: fix ICE in sm_state_map::dump when dumping trees gcc/analyzer/ChangeLog: * program-state.cc (sm_state_map::dump): Use default_tree_printer as format decoder. Signed-off-by: David Malcolm --- diff --git a/gcc/analyzer/program-state.cc b/gcc/analyzer/program-state.cc index c1ff0d8..8230140 100644 --- a/gcc/analyzer/program-state.cc +++ b/gcc/analyzer/program-state.cc @@ -273,6 +273,7 @@ DEBUG_FUNCTION void sm_state_map::dump (bool simple) const { pretty_printer pp; + pp_format_decoder (&pp) = default_tree_printer; pp_show_color (&pp) = pp_show_color (global_dc->printer); pp.buffer->stream = stderr; print (NULL, simple, true, &pp);