libcpp/ChangeLog:
* line-map.c (get_combined_adhoc_loc): Remove condition
on locus < RESERVED_LOCATION_COUNT when considering
whether a caret == start == finish location can be
simply stored as the caret location.
From-SVN: r231918
+2015-12-22 David Malcolm <dmalcolm@redhat.com>
+
+ * line-map.c (get_combined_adhoc_loc): Remove condition
+ on locus < RESERVED_LOCATION_COUNT when considering
+ whether a caret == start == finish location can be
+ simply stored as the caret location.
+
2015-12-07 David Malcolm <dmalcolm@redhat.com>
* include/line-map.h (rich_location::set_range): Add line_maps *
}
}
- /* We can also compactly store the reserved locations
+ /* We can also compactly store locations
when locus == start == finish (and data is NULL). */
- if (locus < RESERVED_LOCATION_COUNT
- && locus == src_range.m_start
+ if (locus == src_range.m_start
&& locus == src_range.m_finish
&& !data)
return locus;