< prev index next >
src/hotspot/share/opto/graphKit.cpp
Print this page
@@ -3247,13 +3247,11 @@
// Generate the subtype check
Node* not_subtype_ctrl = gen_subtype_check( obj_klass, superklass );
if (is_value) {
- ValueTypeNode* vt = not_null_obj->as_ValueType();
- vt = vt->allocate(this, true)->as_ValueType();
- not_null_obj = ValueTypePtrNode::make_from_value_type(_gvn, vt);
+ not_null_obj = ValueTypePtrNode::make_from_value_type(this, not_null_obj->as_ValueType(), true);
}
// Plug in success path into the merge
cast_obj = _gvn.transform(new CheckCastPPNode(control(), not_null_obj, toop));
// Failure path ends in uncommon trap (or may be dead - failure impossible)
< prev index next >