src/hotspot/share/opto/doCall.cpp
changeset 52634 85283f9565da
parent 51444 3e5d28e6de32
child 53393 0bb889c05406
--- a/src/hotspot/share/opto/doCall.cpp	Wed Nov 21 14:24:31 2018 +0530
+++ b/src/hotspot/share/opto/doCall.cpp	Wed Nov 21 15:05:21 2018 +0100
@@ -470,7 +470,7 @@
   // Push appendix argument (MethodType, CallSite, etc.), if one.
   if (iter().has_appendix()) {
     ciObject* appendix_arg = iter().get_appendix();
-    const TypeOopPtr* appendix_arg_type = TypeOopPtr::make_from_constant(appendix_arg);
+    const TypeOopPtr* appendix_arg_type = TypeOopPtr::make_from_constant(appendix_arg, /* require_const= */ true);
     Node* appendix_arg_node = _gvn.makecon(appendix_arg_type);
     push(appendix_arg_node);
   }