summaryrefslogtreecommitdiff
path: root/gcc/tree-optimize.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree-optimize.c')
-rw-r--r--gcc/tree-optimize.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-optimize.c b/gcc/tree-optimize.c
index ab11f4d2ad3..e6049cb2b29 100644
--- a/gcc/tree-optimize.c
+++ b/gcc/tree-optimize.c
@@ -105,7 +105,7 @@ tree_rest_of_compilation (tree fndecl, bool nested_p)
/* Initialize the RTL code for the function. */
current_function_decl = fndecl;
saved_loc = input_location;
- input_location = TREE_LOCUS (fndecl);
+ input_location = DECL_SOURCE_LOCATION (fndecl);
init_function_start (fndecl);
/* This function is being processed in whole-function mode. */