summaryrefslogtreecommitdiff
path: root/compiler/driver/compiler_driver.cc
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2016-01-27 18:33:38 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2016-01-27 18:33:38 +0000
commitca5050538cbb0260c50530055f1ea880015327b7 (patch)
tree20520a5b5838b3251fd755584645d8ae85908b17 /compiler/driver/compiler_driver.cc
parent1be9e27239dc63bb4d8134df50be60f65a9d5da3 (diff)
parent47496c293b2b79c9747eeebafe444715202e7fc6 (diff)
Merge "ART: Allow --no-inline-from to specify multiple dex files."
Diffstat (limited to 'compiler/driver/compiler_driver.cc')
-rw-r--r--compiler/driver/compiler_driver.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/driver/compiler_driver.cc b/compiler/driver/compiler_driver.cc
index 818d50a994..c483f33ae6 100644
--- a/compiler/driver/compiler_driver.cc
+++ b/compiler/driver/compiler_driver.cc
@@ -2582,7 +2582,8 @@ bool CompilerDriver::MayInlineInternal(const DexFile* inlined_from,
const DexFile* inlined_into) const {
// We're not allowed to inline across dex files if we're the no-inline-from dex file.
if (inlined_from != inlined_into &&
- compiler_options_->GetNoInlineFromDexFile() == inlined_from) {
+ compiler_options_->GetNoInlineFromDexFile() != nullptr &&
+ ContainsElement(*compiler_options_->GetNoInlineFromDexFile(), inlined_from)) {
return false;
}