tree-inline.c: (expand_call_inline): Ensure that lexical block's source location...
authorDehao Chen <dehao@google.com>
Tue, 26 Jun 2012 10:13:11 +0000 (10:13 +0000)
committerDehao Chen <dehao@gcc.gnu.org>
Tue, 26 Jun 2012 10:13:11 +0000 (10:13 +0000)
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

gcc/ChangeLog
gcc/tree-inline.c

index 356d201..2fd5563 100644 (file)
@@ -1,3 +1,8 @@
+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.
+
 2012-06-26  Ulrich Weigand  <ulrich.weigand@linaro.org>
 
        PR tree-optimization/53729
index 519cde4..7a8b6a8 100644 (file)
@@ -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)