The condition the assert was flawed.
authorAndrew MacLeod <amacleod@redhat.com>
Fri, 28 Apr 2006 20:39:18 +0000 (20:39 +0000)
committerAndrew Macleod <amacleod@gcc.gnu.org>
Fri, 28 Apr 2006 20:39:18 +0000 (20:39 +0000)
2006-04-28  Andrew MacLeod  <amacleod@redhat.com>

* tree-ssa-dom.c (propagate_rhs_into_lhs): Fix assert clause.

From-SVN: r113356

gcc/ChangeLog
gcc/tree-ssa-dom.c

index 99f3503bceef1645c82c36285a90ab463a90c570..23faf824805c2b2f7a6b3ec68af663c485fb614a 100644 (file)
@@ -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
index 431f8564bd3337039c4f34187daba4844238d770..6574f9bf244149b8cf64ea940fc0bba35c6f6565 100644 (file)
@@ -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.  */