From bb206de72135271e66e58576b1196f3e08d5b6fd Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Thu, 28 Mar 2019 10:30:32 +0000 Subject: ObjPtr<>-ify ClassExt. Test: m test-art-host-gtest Test: testrunner.py --host Bug: 31113334 Change-Id: If5fe3b9f6e10549b5ca3f395b0c83531cd3ba7a3 --- runtime/mirror/class_ext.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/mirror/class_ext.cc') diff --git a/runtime/mirror/class_ext.cc b/runtime/mirror/class_ext.cc index 146adc978c..d12f340690 100644 --- a/runtime/mirror/class_ext.cc +++ b/runtime/mirror/class_ext.cc @@ -102,8 +102,8 @@ bool ClassExt::ExtendObsoleteArrays(Thread* self, uint32_t increase) { return true; } -ClassExt* ClassExt::Alloc(Thread* self) { - return down_cast(GetClassRoot()->AllocObject(self).Ptr()); +ObjPtr ClassExt::Alloc(Thread* self) { + return ObjPtr::DownCast(GetClassRoot()->AllocObject(self)); } void ClassExt::SetVerifyError(ObjPtr err) { -- cgit v1.2.3-59-g8ed1b