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
This commit is contained in:
Steven Bosscher 2008-06-26 20:11:07 +00:00
parent 25e8772741
commit e24c4814fd
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2008-06-26 Steven Bosscher <steven@gcc.gnu.org>
* tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
this point, so assert that.
2008-06-26 Steven Bosscher <steven@gcc.gnu.org>
* cfganal.c: Include vec.h and vecprim.h.

View File

@ -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. */