aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-diagnostic.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree-diagnostic.cc')
-rw-r--r--gcc/tree-diagnostic.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/gcc/tree-diagnostic.cc b/gcc/tree-diagnostic.cc
index cae400c..de853bc 100644
--- a/gcc/tree-diagnostic.cc
+++ b/gcc/tree-diagnostic.cc
@@ -374,9 +374,8 @@ tree_diagnostics_defaults (diagnostic_context *context)
diagnostic_starter (context) = default_tree_diagnostic_starter;
diagnostic_finalizer (context) = default_diagnostic_finalizer;
diagnostic_format_decoder (context) = default_tree_printer;
- context->print_path = default_tree_diagnostic_path_printer;
- context->make_json_for_path = default_tree_make_json_for_path;
- context->set_locations_cb = set_inlining_locations;
- delete context->m_client_data_hooks;
- context->m_client_data_hooks = make_compiler_data_hooks ();
+ context->m_print_path = default_tree_diagnostic_path_printer;
+ context->m_make_json_for_path = default_tree_make_json_for_path;
+ context->set_set_locations_callback (set_inlining_locations);
+ context->set_client_data_hooks (make_compiler_data_hooks ());
}