summaryrefslogtreecommitdiff
path: root/gcc/tree-complex.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2012-08-09 11:00:11 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2012-08-09 11:00:11 +0000
commit2f4ec87cdd756787336817e61fd6789d0f195a17 (patch)
tree84d551856d6816f8affe10aae4bb943fb33b73ea /gcc/tree-complex.c
parent6c8a1d7dd42604be51237bb779c8fd74250dd5fe (diff)
downloadgcc-2f4ec87cdd756787336817e61fd6789d0f195a17.tar.gz
2012-08-09 Richard Guenther <rguenther@suse.de>
* tree.h (SSA_VAR_P): Simplify. * tree-ssanames.c (make_ssa_name_fn): Strengthen assert. * fold-const.c (fold_comparison): Check for default def first before checking for PARM_DECL. * tree-complex.c (get_component_ssa_name): Likewise. * tree-inline.c (remap_ssa_name): Likewise. * tree-ssa-loop-ivopts.c (parm_decl_cost): Likewise. * tree-ssa-structalias.c (get_fi_for_callee): Likewise. (find_what_p_points_to): Likewise. * tree-ssa-operands.c (add_stmt_operand): Simplify. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@190250 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-complex.c')
-rw-r--r--gcc/tree-complex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-complex.c b/gcc/tree-complex.c
index 82ec14a7a6f..a34d04842f2 100644
--- a/gcc/tree-complex.c
+++ b/gcc/tree-complex.c
@@ -495,8 +495,8 @@ get_component_ssa_name (tree ssa_name, bool imag_p)
is used in an abnormal phi, and whether it's uninitialized. */
SSA_NAME_OCCURS_IN_ABNORMAL_PHI (ret)
= SSA_NAME_OCCURS_IN_ABNORMAL_PHI (ssa_name);
- if (TREE_CODE (SSA_NAME_VAR (ssa_name)) == VAR_DECL
- && SSA_NAME_IS_DEFAULT_DEF (ssa_name))
+ if (SSA_NAME_IS_DEFAULT_DEF (ssa_name)
+ && TREE_CODE (SSA_NAME_VAR (ssa_name)) == VAR_DECL)
{
SSA_NAME_DEF_STMT (ret) = SSA_NAME_DEF_STMT (ssa_name);
set_ssa_default_def (cfun, SSA_NAME_VAR (ret), ret);