diff options
Diffstat (limited to 'runtime/native')
-rw-r--r-- | runtime/native/dalvik_system_VMRuntime.cc | 1 | ||||
-rw-r--r-- | runtime/native/java_lang_System.cc | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/runtime/native/dalvik_system_VMRuntime.cc b/runtime/native/dalvik_system_VMRuntime.cc index ec7d82db8e..c35bb30b48 100644 --- a/runtime/native/dalvik_system_VMRuntime.cc +++ b/runtime/native/dalvik_system_VMRuntime.cc @@ -326,6 +326,7 @@ static void PreloadDexCachesResolveMethod(Handle<mirror::DexCache> dex_cache, ui break; default: LOG(FATAL) << "Unreachable - invocation type: " << invoke_type; + UNREACHABLE(); } if (method == NULL) { return; diff --git a/runtime/native/java_lang_System.cc b/runtime/native/java_lang_System.cc index ee99e78067..43681a70fd 100644 --- a/runtime/native/java_lang_System.cc +++ b/runtime/native/java_lang_System.cc @@ -93,7 +93,7 @@ static void System_arraycopy(JNIEnv* env, jclass, jobject javaSrc, jint srcPos, switch (dstComponentPrimitiveType) { case Primitive::kPrimVoid: LOG(FATAL) << "Unreachable, cannot have arrays of type void"; - return; + UNREACHABLE(); case Primitive::kPrimBoolean: case Primitive::kPrimByte: DCHECK_EQ(Primitive::ComponentSize(dstComponentPrimitiveType), 1U); @@ -122,7 +122,7 @@ static void System_arraycopy(JNIEnv* env, jclass, jobject javaSrc, jint srcPos, } default: LOG(FATAL) << "Unknown array type: " << PrettyTypeOf(srcArray); - return; + UNREACHABLE(); } } // If one of the arrays holds a primitive type the other array must hold the exact same type. |