Merge "Fix filled new array bug." into ics-mr1-plus-art
diff --git a/src/compiler_llvm/method_compiler.cc b/src/compiler_llvm/method_compiler.cc
index fb6cc19..7a47c89 100644
--- a/src/compiler_llvm/method_compiler.cc
+++ b/src/compiler_llvm/method_compiler.cc
@@ -1813,7 +1813,7 @@
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));