From a5f844647be0134e5a3e0a16572308f0de57c15d Mon Sep 17 00:00:00 2001 From: Andrew MacLeod Date: Fri, 28 Apr 2006 20:39:18 +0000 Subject: The condition the assert was flawed. 2006-04-28 Andrew MacLeod * tree-ssa-dom.c (propagate_rhs_into_lhs): Fix assert clause. From-SVN: r113356 --- gcc/ChangeLog | 4 ++++ gcc/tree-ssa-dom.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'gcc') diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 99f3503..23faf82 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2006-04-28 Andrew MacLeod + + * tree-ssa-dom.c (propagate_rhs_into_lhs): Fix assert clause. + 2006-04-28 Roger Sayle PR c/25309 diff --git a/gcc/tree-ssa-dom.c b/gcc/tree-ssa-dom.c index 431f856..6574f9b 100644 --- a/gcc/tree-ssa-dom.c +++ b/gcc/tree-ssa-dom.c @@ -2304,7 +2304,7 @@ propagate_rhs_into_lhs (tree stmt, tree lhs, tree rhs, bitmap interesting_names) } /* Ensure there is nothing else to do. */ - gcc_assert (all && has_zero_uses (lhs)); + gcc_assert (!all || has_zero_uses (lhs)); /* If we were able to propagate away all uses of LHS, then we can remove STMT. */ -- cgit v1.1