ObjPtr<>-ify mirror::ObjectArray.
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Bug: 31113334
Change-Id: I611b3e49d3feed306f6cd35d2b662a1e727e24c6
diff --git a/runtime/mirror/iftable-inl.h b/runtime/mirror/iftable-inl.h
index 225a36d..b9bd21c 100644
--- a/runtime/mirror/iftable-inl.h
+++ b/runtime/mirror/iftable-inl.h
@@ -44,7 +44,7 @@
template<VerifyObjectFlags kVerifyFlags,
ReadBarrierOption kReadBarrierOption>
inline ObjPtr<PointerArray> IfTable::GetMethodArrayOrNull(int32_t i) {
- return down_cast<PointerArray*>(
+ return ObjPtr<PointerArray>::DownCast(
Get<kVerifyFlags, kReadBarrierOption>((i * kMax) + kMethodArray));
}