Mercurial > hg > graal-jvmci-8
diff src/share/vm/opto/type.cpp @ 23293:071a85b9e631
Fix interface_vs_oop assertion logic for array types
author | Tom Rodriguez <tom.rodriguez@oracle.com> |
---|---|
date | Thu, 28 Jan 2016 20:18:25 -0800 |
parents | dd9cc155639c |
children | b5f3a471e646 |
line wrap: on
line diff
--- a/src/share/vm/opto/type.cpp Mon Jan 25 14:57:27 2016 -0800 +++ b/src/share/vm/opto/type.cpp Thu Jan 28 20:18:25 2016 -0800 @@ -1981,12 +1981,12 @@ //----------------------interface_vs_oop--------------------------------------- #ifdef ASSERT -bool TypeAry::interface_vs_oop(const Type *t) const { +bool TypeAry::interface_vs_oop_helper(const Type *t) const { const TypeAry* t_ary = t->is_ary(); if (t_ary) { return _elem->interface_vs_oop(t_ary->_elem); } - return false; + return Type::interface_vs_oop_helper(t); } #endif @@ -4060,12 +4060,12 @@ //----------------------interface_vs_oop--------------------------------------- #ifdef ASSERT -bool TypeAryPtr::interface_vs_oop(const Type *t) const { +bool TypeAryPtr::interface_vs_oop_helper(const Type *t) const { const TypeAryPtr* t_aryptr = t->isa_aryptr(); if (t_aryptr) { return _ary->interface_vs_oop(t_aryptr->_ary); } - return false; + return Type::interface_vs_oop_helper(t); } #endif