diff options
Diffstat (limited to 'runtime/mirror/object_array-inl.h')
-rw-r--r-- | runtime/mirror/object_array-inl.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/runtime/mirror/object_array-inl.h b/runtime/mirror/object_array-inl.h index 80d51359a6..30bc1cd66e 100644 --- a/runtime/mirror/object_array-inl.h +++ b/runtime/mirror/object_array-inl.h @@ -22,7 +22,6 @@ #include "array-inl.h" #include "base/stringprintf.h" #include "gc/heap.h" -#include "mirror/art_field.h" #include "mirror/class.h" #include "runtime.h" #include "handle_scope-inl.h" @@ -36,13 +35,13 @@ template<class T> inline ObjectArray<T>* ObjectArray<T>::Alloc(Thread* self, Class* object_array_class, int32_t length, gc::AllocatorType allocator_type) { Array* array = Array::Alloc<true>(self, object_array_class, length, - ComponentSizeShiftWidth<sizeof(HeapReference<Object>)>(), + ComponentSizeShiftWidth(sizeof(HeapReference<Object>)), allocator_type); if (UNLIKELY(array == nullptr)) { return nullptr; } else { DCHECK_EQ(array->GetClass()->GetComponentSizeShift(), - ComponentSizeShiftWidth<sizeof(HeapReference<Object>)>()); + ComponentSizeShiftWidth(sizeof(HeapReference<Object>))); return array->AsObjectArray<T>(); } } |