tree-ssa-dom.c (lookup_avail_expr): Do not pass member in freed structure as argument.

* tree-ssa-dom.c (lookup_avail_expr): Do not pass member in freed
	structure as argument.

From-SVN: r101971
This commit is contained in:
David Edelsohn 2005-07-13 15:21:05 +00:00 committed by David Edelsohn
parent 3cb005cf5b
commit bbcbc3e07f
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2005-07-13 David Edelsohn <edelsohn@gnu.org>
* tree-ssa-dom.c (lookup_avail_expr): Do not pass member in freed
structure as argument.
2005-07-13 Paolo Bonzini <bonzini@gnu.org>
PR tree-optimization/21921

View file

@ -3104,7 +3104,7 @@ lookup_avail_expr (tree stmt, bool insert)
tree t = element->rhs;
free (element);
return constant_boolean_node (TREE_CODE (t) != EQ_EXPR,
TREE_TYPE (element->rhs));
TREE_TYPE (t));
}
}