summaryrefslogtreecommitdiff
path: root/src/compiler/driver/compiler_driver.cc
diff options
context:
space:
mode:
author Ian Rogers <irogers@google.com> 2013-06-20 11:17:03 -0700
committer Ian Rogers <irogers@google.com> 2013-06-20 11:17:03 -0700
commitb19fa800aab1c2731b12ff24696feca13901db3f (patch)
tree04047f1f9f3ce4d1dd1d4be04e8d24023b59859a /src/compiler/driver/compiler_driver.cc
parent45478f42a780d9852892c97c876d5d969d26533c (diff)
Don't always slow-path array casts/instance-of.
Recent changes to IsAbstract for arrays pushed us in to always generating slow-paths. Change-Id: I52fb50953949f337243961a308eabf0d684eacf3
Diffstat (limited to 'src/compiler/driver/compiler_driver.cc')
-rw-r--r--src/compiler/driver/compiler_driver.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/driver/compiler_driver.cc b/src/compiler/driver/compiler_driver.cc
index 186cf0d4d3..b04e5b1f3d 100644
--- a/src/compiler/driver/compiler_driver.cc
+++ b/src/compiler/driver/compiler_driver.cc
@@ -851,7 +851,7 @@ bool CompilerDriver::CanAccessTypeWithoutChecks(uint32_t referrer_idx, const Dex
*type_known_final = resolved_class->IsFinal() && !resolved_class->IsArrayClass();
}
if (type_known_abstract != NULL) {
- *type_known_abstract = resolved_class->IsAbstract();
+ *type_known_abstract = resolved_class->IsAbstract() && !resolved_class->IsArrayClass();
}
} else {
stats_->TypeNeedsAccessCheck();