src/share/vm/opto/stringopts.cpp

changeset 2661
b099aaf51bf8
parent 2413
2ddb2fab82cb
child 2667
0e3ed5a14f73
     1.1 --- a/src/share/vm/opto/stringopts.cpp	Mon Mar 21 18:38:00 2011 -0700
     1.2 +++ b/src/share/vm/opto/stringopts.cpp	Tue Mar 22 13:36:33 2011 -0700
     1.3 @@ -910,7 +910,7 @@
     1.4        ciObject* con = field->constant_value().as_object();
     1.5        // Do not "join" in the previous type; it doesn't add value,
     1.6        // and may yield a vacuous result if the field is of interface type.
     1.7 -      type = TypeOopPtr::make_from_constant(con)->isa_oopptr();
     1.8 +      type = TypeOopPtr::make_from_constant(con, true)->isa_oopptr();
     1.9        assert(type != NULL, "field singleton type must be consistent");
    1.10      } else {
    1.11        type = TypeOopPtr::make_from_klass(field_klass->as_klass());

mercurial