summaryrefslogtreecommitdiff
path: root/gcc/gimple.c
diff options
context:
space:
mode:
authorbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2010-10-06 08:59:14 +0000
committerbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2010-10-06 08:59:14 +0000
commit5a162b7ae6b7d344af6a033e922bc5e0e77eb6aa (patch)
tree56aca246b6ab6aeda938b1018391b7f1c5d7df72 /gcc/gimple.c
parentf68b5712b23021c39d8c91b2c98130266b9504a3 (diff)
downloadgcc-5a162b7ae6b7d344af6a033e922bc5e0e77eb6aa.tar.gz
2010-10-06 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk rev 165014 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@165017 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gimple.c')
-rw-r--r--gcc/gimple.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/gimple.c b/gcc/gimple.c
index fa8acd08e94..54e68571c7a 100644
--- a/gcc/gimple.c
+++ b/gcc/gimple.c
@@ -3013,7 +3013,8 @@ get_base_address (tree t)
&& TREE_CODE (TREE_OPERAND (t, 0)) == ADDR_EXPR)
t = TREE_OPERAND (TREE_OPERAND (t, 0), 0);
- if (SSA_VAR_P (t)
+ if (TREE_CODE (t) == SSA_NAME
+ || DECL_P (t)
|| TREE_CODE (t) == STRING_CST
|| TREE_CODE (t) == CONSTRUCTOR
|| INDIRECT_REF_P (t)