6794939: assert(_base == OopPtr,"subclass must override cast_to_ptr_type")
Summary: Fix the assert in TypeKlassPtr::cast_to_ptr_type().
Reviewed-by: never
--- a/hotspot/src/share/vm/opto/type.cpp Fri Jan 16 11:23:10 2009 -0800
+++ b/hotspot/src/share/vm/opto/type.cpp Wed Jan 21 11:18:38 2009 -0800
@@ -3667,7 +3667,7 @@
//------------------------------cast_to_ptr_type-------------------------------
const Type *TypeKlassPtr::cast_to_ptr_type(PTR ptr) const {
- assert(_base == OopPtr, "subclass must override cast_to_ptr_type");
+ assert(_base == KlassPtr, "subclass must override cast_to_ptr_type");
if( ptr == _ptr ) return this;
return make(ptr, _klass, _offset);
}