diff options
Diffstat (limited to 'src/compiler_llvm/method_compiler.cc')
| -rw-r--r-- | src/compiler_llvm/method_compiler.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler_llvm/method_compiler.cc b/src/compiler_llvm/method_compiler.cc index 52a4456000..abafb3a139 100644 --- a/src/compiler_llvm/method_compiler.cc +++ b/src/compiler_llvm/method_compiler.cc @@ -1723,8 +1723,8 @@ void MethodCompiler::EmitInsn_NewInstance(uint32_t dex_pc, DecodedInstruction dec_insn(insn); llvm::Function* runtime_func; - if (compiler_->CanAccessTypeWithoutChecks(method_idx_, dex_cache_, - *dex_file_, dec_insn.vB)) { + if (compiler_->CanAccessInstantiableTypeWithoutChecks( + method_idx_, dex_cache_, *dex_file_, dec_insn.vB)) { runtime_func = irb_.GetRuntime(AllocObject); } else { runtime_func = irb_.GetRuntime(AllocObjectWithAccessCheck); |