aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxur <xur@138bc75d-0d04-0410-961f-82ee72b054a4>2014-05-08 20:50:35 +0000
committerxur <xur@138bc75d-0d04-0410-961f-82ee72b054a4>2014-05-08 20:50:35 +0000
commit140a6366f0d5ce77d29c17e06ae046b3a09972f1 (patch)
treeb9ebce20e628bb934278e69e6b63d40a2996b497
parent104f7088c9283b291d3aa8df9ee43cd62c9520c4 (diff)
2014-05-08 Rong Xu <xur@google.com>
* tree-inline.c (add_local_variables): Check if the debug_expr is a decl_node before calling is_global_var. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/google/gcc-4_8@210245 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/tree-inline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c
index 866dea6a08f..1edc45d177f 100644
--- a/gcc/tree-inline.c
+++ b/gcc/tree-inline.c
@@ -3842,7 +3842,7 @@ add_local_variables (struct function *callee, struct function *caller,
of varpool node does not check the reference
from debug expressions.
Set it to 0 for all global vars. */
- if (L_IPO_COMP_MODE && tem && is_global_var (tem))
+ if (L_IPO_COMP_MODE && tem && DECL_P (tem) && is_global_var (tem))
tem = NULL;
id->remapping_type_depth++;