提交 d11a6ed9 编写于 作者: K kvn

6794939: assert(_base == OopPtr,"subclass must override cast_to_ptr_type")

Summary: Fix the assert in TypeKlassPtr::cast_to_ptr_type().
Reviewed-by: never
上级 08fbaf0f
......@@ -3667,7 +3667,7 @@ const TypePtr *TypeKlassPtr::add_offset( intptr_t offset ) const {
//------------------------------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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册