diff options
Diffstat (limited to 'gcc/langhooks.c')
-rw-r--r-- | gcc/langhooks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/langhooks.c b/gcc/langhooks.c index 70af8da4b30..901f9b4a300 100644 --- a/gcc/langhooks.c +++ b/gcc/langhooks.c @@ -372,7 +372,7 @@ lhd_print_error_function (diagnostic_context *context, const char *file, const char *old_prefix = context->printer->prefix; tree abstract_origin = diagnostic_abstract_origin (diagnostic); char *new_prefix = (file && abstract_origin == NULL) - ? file_name_as_prefix (file) : NULL; + ? file_name_as_prefix (context, file) : NULL; pp_set_prefix (context->printer, new_prefix); |