hotspot/src/share/vm/opto/loopPredicate.cpp
changeset 17383 3665c0901a0d
parent 13963 e5b53c306fb5
child 21089 e1986ff6fe2e
--- a/hotspot/src/share/vm/opto/loopPredicate.cpp	Mon May 06 19:49:23 2013 -0700
+++ b/hotspot/src/share/vm/opto/loopPredicate.cpp	Wed May 08 15:08:01 2013 -0700
@@ -821,8 +821,8 @@
         loop->dump_head();
       }
 #endif
-    } else if (cl != NULL && loop->is_range_check_if(iff, this, invar)) {
-      assert(proj->_con == predicate_proj->_con, "must match");
+    } else if ((cl != NULL) && (proj->_con == predicate_proj->_con) &&
+               loop->is_range_check_if(iff, this, invar)) {
 
       // Range check for counted loops
       const Node*    cmp    = bol->in(1)->as_Cmp();