< prev index next >

src/share/vm/opto/type.cpp

Print this page

        

@@ -2079,12 +2079,11 @@
     case T_SHORT:
       field_array[pos++] = TypeInt::INT;
       break;
     case T_VALUETYPE: {
       assert(type->is_valuetype(), "inconsistent type");
-      assert(type != ciEnv::current()->___Value_klass(), "unsupported");
-      if (vt_fields_as_args) {
+      if (vt_fields_as_args && type != ciEnv::current()->___Value_klass()) {
         ciValueKlass* vk = (ciValueKlass*)type;
         collect_value_fields(vk, field_array, pos);
       } else {
         field_array[pos++] = get_const_type(type);
       }
< prev index next >