diff options
author | dberlin <dberlin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-02-23 18:16:12 +0000 |
---|---|---|
committer | dberlin <dberlin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-02-23 18:16:12 +0000 |
commit | a9114efc6419db12b95ea172ad3b6b26ccbc3262 (patch) | |
tree | 302fd6a4a661f407ef5527b0c07894710916b231 /gcc/tree-ssa-structalias.c | |
parent | a078576a02e5726efc122940777cddf20a481ff4 (diff) | |
download | gcc-a9114efc6419db12b95ea172ad3b6b26ccbc3262.tar.gz |
2006-02-23 Daniel Berlin <dberlin@dberlin.org>
Fix PR tree-optimization/26376
* tree-ssa-structalias.c (find_func_aliases): Use get_id_for_tree,
remove assert.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@111392 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-structalias.c')
-rw-r--r-- | gcc/tree-ssa-structalias.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c index 3dac07642a8..5d84f13fe60 100644 --- a/gcc/tree-ssa-structalias.c +++ b/gcc/tree-ssa-structalias.c @@ -3291,7 +3291,6 @@ find_func_aliases (tree origt) tree lhsop; tree rhsop; unsigned int varid; - bool found = false; tree arglist; varinfo_t fi; int i = 1; @@ -3313,14 +3312,12 @@ find_func_aliases (tree origt) we should still be able to handle. */ if (decl) { - found = lookup_id_for_tree (decl, &varid); - gcc_assert (found); + varid = get_id_for_tree (decl); } else { decl = TREE_OPERAND (rhsop, 0); - found = lookup_id_for_tree (decl, &varid); - gcc_assert (found); + varid = get_id_for_tree (decl); } /* Assign all the passed arguments to the appropriate incoming @@ -3806,7 +3803,6 @@ create_function_info_for (tree decl, const char *name) arg = DECL_ARGUMENTS (decl); - /* Set up variables for each argument. */ for (i = 1; i < vi->fullsize; i++) { |