diff options
author | Giuliano Belinassi <giuliano.belinassi@usp.br> | 2020-08-22 17:43:43 -0300 |
---|---|---|
committer | Giuliano Belinassi <giuliano.belinassi@usp.br> | 2020-08-22 17:43:43 -0300 |
commit | a926878ddbd5a98b272c22171ce58663fc04c3e0 (patch) | |
tree | 86af256e5d9a9c06263c00adc90e5fe348008c43 /gcc/tree-diagnostic-path.cc | |
parent | 542730f087133690b47e036dfd43eb0db8a650ce (diff) | |
parent | 07cbaed8ba7d1b6e4ab3a9f44175502a4e1ecdb1 (diff) | |
download | gcc-devel/autopar_devel.zip gcc-devel/autopar_devel.tar.gz gcc-devel/autopar_devel.tar.bz2 |
Merge branch 'autopar_rebase2' into autopar_develdevel/autopar_devel
Quickly commit changes in the rebase branch.
Diffstat (limited to 'gcc/tree-diagnostic-path.cc')
-rw-r--r-- | gcc/tree-diagnostic-path.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/tree-diagnostic-path.cc b/gcc/tree-diagnostic-path.cc index 381a49c..82b3c2d 100644 --- a/gcc/tree-diagnostic-path.cc +++ b/gcc/tree-diagnostic-path.cc @@ -493,7 +493,7 @@ default_tree_diagnostic_path_printer (diagnostic_context *context, doesn't have access to trees (for m_fndecl). */ json::value * -default_tree_make_json_for_path (diagnostic_context *, +default_tree_make_json_for_path (diagnostic_context *context, const diagnostic_path *path) { json::array *path_array = new json::array (); @@ -504,7 +504,8 @@ default_tree_make_json_for_path (diagnostic_context *, json::object *event_obj = new json::object (); if (event.get_location ()) event_obj->set ("location", - json_from_expanded_location (event.get_location ())); + json_from_expanded_location (context, + event.get_location ())); label_text event_text (event.get_desc (false)); event_obj->set ("description", new json::string (event_text.m_buffer)); event_text.maybe_free (); |