diff options
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r-- | gcc/tree-inline.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index 279dd8e2c98..feb395f5c4b 100644 --- a/gcc/tree-inline.c +++ b/gcc/tree-inline.c @@ -1419,8 +1419,8 @@ expand_call_inline (tree *tp, int *walk_subtrees, void *data) /* Set input_location here so we get the right instantiation context if we call instantiate_decl from inlinable_function_p. */ saved_location = input_location; - if (EXPR_LOCUS (t)) - input_location = *EXPR_LOCUS (t); + if (EXPR_HAS_LOCATION (t)) + input_location = EXPR_LOCATION (t); /* Recurse, but letting recursive invocations know that we are inside the body of a TARGET_EXPR. */ |