8020750: Node::get_int: guarantee(t != NULL) failed: must be con

Reviewed-by: kvn, roland
This commit is contained in:
Christian Thalinger 2013-10-09 11:05:17 -07:00
parent e9dbb39270
commit b90addac58

View file

@ -689,6 +689,7 @@ Node* IfNode::fold_compares(PhaseGVN* phase) {
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);