6794939: assert(_base == OopPtr,"subclass must override cast_to_ptr_type")
authorkvn
Wed, 21 Jan 2009 11:18:38 -0800
changeset 2021 3c26c11fa62e
parent 2020 68d27ca96f33
child 2022 28ce8115a91d
6794939: assert(_base == OopPtr,"subclass must override cast_to_ptr_type") Summary: Fix the assert in TypeKlassPtr::cast_to_ptr_type(). Reviewed-by: never
hotspot/src/share/vm/opto/type.cpp
--- 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);
 }