summaryrefslogtreecommitdiffstats
path: root/runtime/mirror/dex_cache_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/mirror/dex_cache_test.cc')
-rw-r--r--runtime/mirror/dex_cache_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/mirror/dex_cache_test.cc b/runtime/mirror/dex_cache_test.cc
index 97e0ce6684..7a70cae1ef 100644
--- a/runtime/mirror/dex_cache_test.cc
+++ b/runtime/mirror/dex_cache_test.cc
@@ -83,7 +83,7 @@ TEST_F(DexCacheTest, LinearAlloc) {
StackHandleScope<1> hs(soa.Self());
Handle<mirror::ClassLoader> class_loader(hs.NewHandle(
soa.Decode<mirror::ClassLoader>(jclass_loader)));
- mirror::Class* klass = class_linker_->FindClass(soa.Self(), "LMain;", class_loader);
+ ObjPtr<mirror::Class> klass = class_linker_->FindClass(soa.Self(), "LMain;", class_loader);
ASSERT_TRUE(klass != nullptr);
LinearAlloc* const linear_alloc = klass->GetClassLoader()->GetAllocator();
EXPECT_NE(linear_alloc, runtime_->GetLinearAlloc());