diagnostic_manager::emit_saved_diagnostic makes a useless clone
of global_dc->m_printer; remove it.
No functional change intended.
gcc/analyzer/ChangeLog:
PR other/116613
* diagnostic-manager.cc (diagnostic_manager::emit_saved_diagnostic):
Remove remove redundant 'pp'.
Signed-off-by: David Malcolm <dmalcolm@redhat.com>
sd.get_index (), sd.m_d->get_kind (), sd.m_snode->m_index);
log ("num dupes: %i", sd.get_num_dupes ());
- pretty_printer *pp = global_dc->m_printer->clone ();
-
const exploded_path *epath = sd.get_best_epath ();
gcc_assert (epath);
free (filename);
}
}
- delete pp;
}
/* Emit a "path" of events to EMISSION_PATH describing the exploded path