summaryrefslogtreecommitdiff
path: root/src/compiler_llvm/method_compiler.cc
diff options
context:
space:
mode:
author TDYa127 <tdy@google.com> 2012-04-11 07:53:21 -0700
committer Shih-wei Liao <sliao@google.com> 2012-04-11 11:16:32 -0700
commit183cf26458244b649b164536b6839cc5beef1bed (patch)
treebc59428a51e07562cd95831df23d697698b01ee5 /src/compiler_llvm/method_compiler.cc
parent5bb8601175bbb9cd761c715f4ba04f84d65e913b (diff)
Fix filled new array bug.
Change-Id: I6994f9bef14db12defc55ee89d391fbccce4d7c5
Diffstat (limited to 'src/compiler_llvm/method_compiler.cc')
-rw-r--r--src/compiler_llvm/method_compiler.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler_llvm/method_compiler.cc b/src/compiler_llvm/method_compiler.cc
index fb6cc19343..7a47c89170 100644
--- a/src/compiler_llvm/method_compiler.cc
+++ b/src/compiler_llvm/method_compiler.cc
@@ -1813,7 +1813,7 @@ void MethodCompiler::EmitInsn_FilledNewArray(uint32_t dex_pc,
if (dec_insn.vA > 0) {
// Resolve the element type
- Class* klass = dex_cache_->GetResolvedType(dec_insn.vB);
+ Class* klass = dex_cache_->GetResolvedType(dec_insn.vB)->GetComponentType();
// TODO: Avoid the usage of the dex_cache_. Try to figure out a better
// way to distinguish [I and [L.
CHECK_NE(klass, static_cast<Class*>(NULL));