Add MOVE_EXCEPTION to compat throw
In some apps, move-exception soft fail and be handled like a throw.
Add it to compat throw to avoid verifier aborts.
Bug: 146178710
Test: make
Change-Id: I9068260044fda4508314dab49bfee5215a2d96b0
diff --git a/runtime/verifier/method_verifier.cc b/runtime/verifier/method_verifier.cc
index 742f50d..740fd09 100644
--- a/runtime/verifier/method_verifier.cc
+++ b/runtime/verifier/method_verifier.cc
@@ -129,7 +129,7 @@
//
// Note: This should eventually be removed.
constexpr bool IsCompatThrow(Instruction::Code opcode) {
- return opcode == Instruction::Code::RETURN_OBJECT;
+ return opcode == Instruction::Code::RETURN_OBJECT || opcode == Instruction::Code::MOVE_EXCEPTION;
}
template <bool kVerifierDebug>