Message ID | 20191220190357.28704-1-dmalcolm@redhat.com |
---|---|
State | New |
Headers | show |
Series | [1/2] (analyzer) tree-diagnostic-path.cc: properly handle ad-hoc wrappers of UNKNOWN_LOCATION | expand |
diff --git a/gcc/tree-diagnostic-path.cc b/gcc/tree-diagnostic-path.cc index 243f05a5fb14..32dc054519b7 100644 --- a/gcc/tree-diagnostic-path.cc +++ b/gcc/tree-diagnostic-path.cc @@ -172,7 +172,7 @@ class path_summary In particular the label for the event won't get printed. Fail more gracefully in this case by showing the event index and text, at no particular location. */ - if (initial_loc <= BUILTINS_LOCATION) + if (get_pure_location (initial_loc) <= BUILTINS_LOCATION) { for (unsigned i = m_start_idx; i <= m_end_idx; i++) {