From e24c4814fd36bb95521e729c648daee92c716a92 Mon Sep 17 00:00:00 2001 From: Steven Bosscher Date: Thu, 26 Jun 2008 20:11:07 +0000 Subject: [PATCH] tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at this point, so assert that. * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at this point, so assert that. From-SVN: r137159 --- gcc/ChangeLog | 5 +++++ gcc/tree-into-ssa.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e175dddb7ef..e76fef0e2e4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2008-06-26 Steven Bosscher + + * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at + this point, so assert that. + 2008-06-26 Steven Bosscher * cfganal.c: Include vec.h and vecprim.h. diff --git a/gcc/tree-into-ssa.c b/gcc/tree-into-ssa.c index 0eb2ded11b9..c9e99efa9d1 100644 --- a/gcc/tree-into-ssa.c +++ b/gcc/tree-into-ssa.c @@ -1111,8 +1111,8 @@ insert_phi_nodes_for (tree var, bitmap phi_insertion_points, bool update_p) } else { - tree sym = DECL_P (var) ? var : SSA_NAME_VAR (var); - phi = create_phi_node (sym, bb); + gcc_assert (DECL_P (var)); + phi = create_phi_node (var, bb); } /* Mark this PHI node as interesting for update_ssa. */ -- 2.30.2