summaryrefslogtreecommitdiff
path: root/src/compiler_llvm/method_compiler.cc
diff options
context:
space:
mode:
author Logan Chien <loganchien@google.com> 2012-04-11 11:43:04 +0800
committer Shih-wei Liao <sliao@google.com> 2012-04-10 23:15:36 -0700
commit1a032b12c0d7383d58d61e6a41c0d03320deaf55 (patch)
tree736fc305317cfe0819a044e0474e0be5d0833d83 /src/compiler_llvm/method_compiler.cc
parent4e42a59fd9db94aa9b2d48c15c8aa1cc908d8356 (diff)
Fix new-instance bug to pass 075.
Change-Id: I180c336c0c60bb425378540ebe3b0919b85a6a34
Diffstat (limited to 'src/compiler_llvm/method_compiler.cc')
-rw-r--r--src/compiler_llvm/method_compiler.cc4
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);