summaryrefslogtreecommitdiff
path: root/runtime/class_linker.cc
diff options
context:
space:
mode:
author Santiago Aboy Solanes <solanes@google.com> 2024-03-11 09:31:10 +0000
committer Santiago Aboy Solanes <solanes@google.com> 2024-03-14 08:47:37 +0000
commit68f7caffe7a2e7d728d5447b28cf8c422be46748 (patch)
tree68e927688ed734bdf16161e52297008b61733c0c /runtime/class_linker.cc
parent41f264abe76acb4f7cb545471cbbfbc30e3101ca (diff)
Make sure there are no lone UNREACHABLEs
Either remove them, or add a LOG(FATAL) before them. Bug: 328756212 Test: art/test/testrunner/testrunner.py --host --64 --optimizing -b Test: m test-art-host-gtest Change-Id: Ibf2bddb0a4add5a844a515a040b3751acc7faf84
Diffstat (limited to 'runtime/class_linker.cc')
-rw-r--r--runtime/class_linker.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/class_linker.cc b/runtime/class_linker.cc
index 57dbd6d259..ff5803e69f 100644
--- a/runtime/class_linker.cc
+++ b/runtime/class_linker.cc
@@ -10203,6 +10203,7 @@ ObjPtr<mirror::MethodHandle> ClassLinker::ResolveMethodHandleForField(
case DexFile::MethodHandleType::kInvokeConstructor:
case DexFile::MethodHandleType::kInvokeDirect:
case DexFile::MethodHandleType::kInvokeInterface:
+ LOG(FATAL) << "Unreachable";
UNREACHABLE();
}
@@ -10261,6 +10262,7 @@ ObjPtr<mirror::MethodHandle> ClassLinker::ResolveMethodHandleForField(
case DexFile::MethodHandleType::kInvokeConstructor:
case DexFile::MethodHandleType::kInvokeDirect:
case DexFile::MethodHandleType::kInvokeInterface:
+ LOG(FATAL) << "Unreachable";
UNREACHABLE();
}
@@ -10301,6 +10303,7 @@ ObjPtr<mirror::MethodHandle> ClassLinker::ResolveMethodHandleForMethod(
case DexFile::MethodHandleType::kStaticGet:
case DexFile::MethodHandleType::kInstancePut:
case DexFile::MethodHandleType::kInstanceGet:
+ LOG(FATAL) << "Unreachable";
UNREACHABLE();
case DexFile::MethodHandleType::kInvokeStatic: {
kind = mirror::MethodHandle::Kind::kInvokeStatic;