From bcf175247272d0e321c8d988c3c01c123b56e36e Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Fri, 1 Jun 2018 13:14:32 +0100 Subject: ObjPtr<>-ify array allocations. And remove some unnecessary calls to ObjPtr<>::Ptr(). Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Bug: 31113334 Change-Id: Ie313980f7f23b33b0ccea4fa8d5131d643c59080 --- runtime/class_root.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/class_root.h') diff --git a/runtime/class_root.h b/runtime/class_root.h index 5c7819841b..4aa9801ab4 100644 --- a/runtime/class_root.h +++ b/runtime/class_root.h @@ -127,7 +127,7 @@ inline ObjPtr GetClassRoot( ObjPtr klass = class_roots->GetWithoutChecks(index); DCHECK(klass != nullptr); - return klass.Ptr(); + return klass; } template -- cgit v1.2.3-59-g8ed1b