diff options
Diffstat (limited to 'runtime/class_linker_test.cc')
-rw-r--r-- | runtime/class_linker_test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/class_linker_test.cc b/runtime/class_linker_test.cc index d45495cf68..e514112382 100644 --- a/runtime/class_linker_test.cc +++ b/runtime/class_linker_test.cc @@ -1298,7 +1298,7 @@ TEST_F(ClassLinkerTest, RegisterDexFileName) { { ReaderMutexLock mu(soa.Self(), *class_linker->DexLock()); for (const ClassLinker::DexCacheData& data : class_linker->GetDexCachesData()) { - dex_cache.Assign(down_cast<mirror::DexCache*>(soa.Self()->DecodeJObject(data.weak_root))); + dex_cache.Assign(soa.Self()->DecodeJObject(data.weak_root)->AsDexCache()); if (dex_cache.Get() != nullptr) { break; } |