aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-complex.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree-complex.cc')
-rw-r--r--gcc/tree-complex.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-complex.cc b/gcc/tree-complex.cc
index ef40511..688fe13 100644
--- a/gcc/tree-complex.cc
+++ b/gcc/tree-complex.cc
@@ -526,7 +526,7 @@ get_component_ssa_name (tree ssa_name, bool imag_p)
SSA_NAME_OCCURS_IN_ABNORMAL_PHI (ret)
= SSA_NAME_OCCURS_IN_ABNORMAL_PHI (ssa_name);
if (SSA_NAME_IS_DEFAULT_DEF (ssa_name)
- && TREE_CODE (SSA_NAME_VAR (ssa_name)) == VAR_DECL)
+ && VAR_P (SSA_NAME_VAR (ssa_name)))
{
SSA_NAME_DEF_STMT (ret) = SSA_NAME_DEF_STMT (ssa_name);
set_ssa_default_def (cfun, SSA_NAME_VAR (ret), ret);