summaryrefslogtreecommitdiffstats
path: root/src/compiler/dex/quick/gen_common.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/dex/quick/gen_common.cc')
-rw-r--r--src/compiler/dex/quick/gen_common.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/dex/quick/gen_common.cc b/src/compiler/dex/quick/gen_common.cc
index 69235273f8..12bdddd8d0 100644
--- a/src/compiler/dex/quick/gen_common.cc
+++ b/src/compiler/dex/quick/gen_common.cc
@@ -974,7 +974,8 @@ void Mir2Lir::GenCheckCast(uint32_t insn_idx, uint32_t type_idx, RegLocation rl_
cu->GetDexFile(),
cu->GetDexMethodIndex());
- if (verifier::MethodVerifier::IsSafeCast(mr, insn_idx)) {
+ if (cu_->compiler_driver->IsSafeCast(mr, insn_idx)) {
+ // Verifier type analysis proved this check cast would never cause an exception.
return;
}
FlushAllRegs();