diff options
author | Andrew MacLeod <amacleod@redhat.com> | 2006-04-28 20:39:18 +0000 |
---|---|---|
committer | Andrew Macleod <amacleod@gcc.gnu.org> | 2006-04-28 20:39:18 +0000 |
commit | a5f844647be0134e5a3e0a16572308f0de57c15d (patch) | |
tree | 07bda6cd46c127a52d8dce3f393f1cc3bd889e8b /gcc | |
parent | a0f0ab9fc19dea21076d7b4d7e8b8c5c32b78455 (diff) | |
download | gcc-a5f844647be0134e5a3e0a16572308f0de57c15d.zip gcc-a5f844647be0134e5a3e0a16572308f0de57c15d.tar.gz gcc-a5f844647be0134e5a3e0a16572308f0de57c15d.tar.bz2 |
The condition the assert was flawed.
2006-04-28 Andrew MacLeod <amacleod@redhat.com>
* tree-ssa-dom.c (propagate_rhs_into_lhs): Fix assert clause.
From-SVN: r113356
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/tree-ssa-dom.c | 2 |
2 files changed, 5 insertions, 1 deletions
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 <amacleod@redhat.com> + + * tree-ssa-dom.c (propagate_rhs_into_lhs): Fix assert clause. + 2006-04-28 Roger Sayle <roger@eyesopen.com> 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. */ |