From 07e0e6b076b2b8d0a03f3caf94ff8c71fa807d29 Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Fri, 31 Jul 2015 20:31:24 +0000 Subject: [PATCH] Revert "ART: Do not allow RETURN_VOID_NO_BARRIER outside constructors" This reverts commit e93505f599682a2e95c4dac1c8633dec79c602bc. This isn't the right thing to do, actually. Bug: 22871329 Change-Id: I0a0a5a86c7c8d8afdf417444ca7d73e56e040515 --- runtime/verifier/method_verifier.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/runtime/verifier/method_verifier.cc b/runtime/verifier/method_verifier.cc index 021102e47..d63b45566 100644 --- a/runtime/verifier/method_verifier.cc +++ b/runtime/verifier/method_verifier.cc @@ -2873,10 +2873,6 @@ bool MethodVerifier::CodeFlowVerifyInstruction(uint32_t* start_guess) { break; } } - } else { - Fail(VERIFY_ERROR_BAD_CLASS_HARD) - << "return-void-no-barrier not expected for non-constructor method " - << PrettyMethod(dex_method_idx_, *dex_file_, true); } break; // Note: the following instructions encode offsets derived from class linking. -- 2.11.0