From 1a032b12c0d7383d58d61e6a41c0d03320deaf55 Mon Sep 17 00:00:00 2001 From: Logan Chien Date: Wed, 11 Apr 2012 11:43:04 +0800 Subject: Fix new-instance bug to pass 075. Change-Id: I180c336c0c60bb425378540ebe3b0919b85a6a34 --- src/compiler_llvm/method_compiler.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/compiler_llvm/method_compiler.cc') 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); -- cgit v1.2.3-59-g8ed1b