aboutsummaryrefslogtreecommitdiff
path: root/gcc/pretty-print.c
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2018-07-20 21:39:14 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2018-07-20 21:39:14 +0000
commit181463c271fb920ca789d2e8bf41fa415be694a8 (patch)
tree702cb60181b1dcfe40bd02920c9fd5ef9833fc15 /gcc/pretty-print.c
parent0d7f90652080c42cddca6f9b68f6895218c70880 (diff)
downloadgcc-181463c271fb920ca789d2e8bf41fa415be694a8.zip
gcc-181463c271fb920ca789d2e8bf41fa415be694a8.tar.gz
gcc-181463c271fb920ca789d2e8bf41fa415be694a8.tar.bz2
libcpp: remove redundant parameter from rich_location::set_range
gcc/c-family/ChangeLog: * c-common.c (c_cpp_error): Remove redundant "line_table" parameter from call to rich_location::set_range. (maybe_suggest_missing_token_insertion): Likewise. gcc/ChangeLog: * pretty-print.c (text_info::set_location): Remove redundant "line_table" parameter from call to rich_location::set_range. libcpp/ChangeLog: * include/line-map.h (rich_location::set_range): Remove redundant line_maps * parameter. * line-map.c (rich_location::set_range): Likewise. From-SVN: r262913
Diffstat (limited to 'gcc/pretty-print.c')
-rw-r--r--gcc/pretty-print.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/pretty-print.c b/gcc/pretty-print.c
index df3ee81..dc7791a 100644
--- a/gcc/pretty-print.c
+++ b/gcc/pretty-print.c
@@ -699,7 +699,7 @@ void
text_info::set_location (unsigned int idx, location_t loc, bool show_caret_p)
{
gcc_checking_assert (m_richloc);
- m_richloc->set_range (line_table, idx, loc, show_caret_p);
+ m_richloc->set_range (idx, loc, show_caret_p);
}
location_t