aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/check-init.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/java/check-init.c')
-rw-r--r--gcc/java/check-init.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/java/check-init.c b/gcc/java/check-init.c
index 03af2fa..c4e3948 100644
--- a/gcc/java/check-init.c
+++ b/gcc/java/check-init.c
@@ -886,18 +886,16 @@ check_init (tree exp, words before)
case EXPR_WITH_FILE_LOCATION:
{
- const char *saved_input_filename = input_filename;
+ location_t saved_location = input_location;
tree saved_wfl = wfl;
tree body = EXPR_WFL_NODE (exp);
- int saved_lineno = input_line;
if (body == empty_stmt_node)
break;
wfl = exp;
input_filename = EXPR_WFL_FILENAME (exp);
input_line = EXPR_WFL_LINENO (exp);
check_init (body, before);
- input_filename = saved_input_filename;
- input_line = saved_lineno;
+ input_location = saved_location;
wfl = saved_wfl;
}
break;