changeset 5598:46ef27bcacb3

8020750: Node::get_int: guarantee(t != NULL) failed: must be con Reviewed-by: kvn, roland
author twisti
date Wed, 09 Oct 2013 11:05:17 -0700
parents 4e7f99b70d9d
children d13d7aba8c12 d8a449d2f5b2
files src/share/vm/opto/ifnode.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/opto/ifnode.cpp	Wed Oct 09 05:03:34 2013 -0700
+++ b/src/share/vm/opto/ifnode.cpp	Wed Oct 09 11:05:17 2013 -0700
@@ -689,6 +689,7 @@
         ctrl->in(0)->in(1)->is_Bool() &&
         ctrl->in(0)->in(1)->in(1)->Opcode() == Op_CmpI &&
         ctrl->in(0)->in(1)->in(1)->in(2)->is_Con() &&
+        ctrl->in(0)->in(1)->in(1)->in(2) != phase->C->top() &&
         ctrl->in(0)->in(1)->in(1)->in(1) == n) {
       IfNode* dom_iff = ctrl->in(0)->as_If();
       Node* otherproj = dom_iff->proj_out(!ctrl->as_Proj()->_con);