Remove useless test.
We know at this point either adjusted_type is unresolved, or it's
resolved and res_method_class must also be resolved to pass the
IsAssignableFrom check.
Test: test.py
Bug: 28313047
Change-Id: Ic5c17ac1110f5c766d6a362c8f1e4d97c9ea0655
diff --git a/runtime/verifier/method_verifier.cc b/runtime/verifier/method_verifier.cc
index 66b2137..4e9697c 100644
--- a/runtime/verifier/method_verifier.cc
+++ b/runtime/verifier/method_verifier.cc
@@ -3937,7 +3937,7 @@
false);
}
if (!res_method_class->IsAssignableFrom(adjusted_type, this)) {
- Fail((adjusted_type.IsUnresolvedTypes() || res_method_class->IsUnresolvedTypes())
+ Fail(adjusted_type.IsUnresolvedTypes()
? VERIFY_ERROR_UNRESOLVED_TYPE_CHECK
: VERIFY_ERROR_BAD_CLASS_HARD)
<< "'this' argument '" << actual_arg_type << "' not instance of '"