aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-inline.c
diff options
context:
space:
mode:
authorDehao Chen <dehao@google.com>2012-06-26 10:13:11 +0000
committerDehao Chen <dehao@gcc.gnu.org>2012-06-26 10:13:11 +0000
commit035775c8b30eb9284c76d1cfda64be1e8a3ad70e (patch)
treeb1b8c88b2851026b107210b9fc17804ec24325da /gcc/tree-inline.c
parent38eec4c652ecafe1056be45914e0a906e7d43c44 (diff)
downloadgcc-035775c8b30eb9284c76d1cfda64be1e8a3ad70e.zip
gcc-035775c8b30eb9284c76d1cfda64be1e8a3ad70e.tar.gz
gcc-035775c8b30eb9284c76d1cfda64be1e8a3ad70e.tar.bz2
tree-inline.c: (expand_call_inline): Ensure that lexical block's source location is consistant...
2012-06-26 Dehao Chen <dehao@google.com> * tree-inline.c: (expand_call_inline): Ensure that lexical block's source location is consistant with the call stmt. From-SVN: r188981
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r--gcc/tree-inline.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c
index 519cde4..7a8b6a8 100644
--- a/gcc/tree-inline.c
+++ b/gcc/tree-inline.c
@@ -3836,8 +3836,7 @@ expand_call_inline (basic_block bb, gimple stmt, copy_body_data *id)
/* 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 (gimple_has_location (stmt))
- input_location = gimple_location (stmt);
+ input_location = gimple_location (stmt);
/* From here on, we're only interested in CALL_EXPRs. */
if (gimple_code (stmt) != GIMPLE_CALL)