diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-08-09 11:00:11 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-08-09 11:00:11 +0000 |
commit | 2f4ec87cdd756787336817e61fd6789d0f195a17 (patch) | |
tree | 84d551856d6816f8affe10aae4bb943fb33b73ea /gcc/tree-ssanames.c | |
parent | 6c8a1d7dd42604be51237bb779c8fd74250dd5fe (diff) | |
download | gcc-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-ssanames.c')
-rw-r--r-- | gcc/tree-ssanames.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/tree-ssanames.c b/gcc/tree-ssanames.c index b9036e2ec50..9e7b1560143 100644 --- a/gcc/tree-ssanames.c +++ b/gcc/tree-ssanames.c @@ -118,7 +118,9 @@ make_ssa_name_fn (struct function *fn, tree var, gimple stmt) tree t; use_operand_p imm; - gcc_assert (DECL_P (var)); + gcc_assert (TREE_CODE (var) == VAR_DECL + || TREE_CODE (var) == PARM_DECL + || TREE_CODE (var) == RESULT_DECL); /* If our free list has an element, then use it. */ if (!VEC_empty (tree, FREE_SSANAMES (fn))) |