Skip to content

Commit 78623c9

Browse files
committedJan 5, 2024
8323012: C2 fails with fatal error: no reachable node should have no use
Reviewed-by: chagedorn
1 parent f0e2e43 commit 78623c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/hotspot/share/opto/cfgnode.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2170,7 +2170,7 @@ Node *PhiNode::Ideal(PhaseGVN *phase, bool can_reshape) {
21702170
cast = phase->transform(cast);
21712171
n = cast;
21722172
}
2173-
cast = new CheckCastPPNode(r, uin, phi_type, ConstraintCastNode::StrongDependency, extra_types);
2173+
cast = new CheckCastPPNode(r, n, phi_type, ConstraintCastNode::StrongDependency, extra_types);
21742174
}
21752175
if (cast == nullptr) {
21762176
cast = new CastPPNode(r, uin, phi_type, ConstraintCastNode::StrongDependency, extra_types);

0 commit comments

Comments
 (0)
Please sign in to comment.