summaryrefslogtreecommitdiff
path: root/compiler/driver/compiler_options.h
diff options
context:
space:
mode:
author Santiago Aboy Solanes <solanes@google.com> 2021-12-02 11:50:03 +0000
committer Treehugger Robot <treehugger-gerrit@google.com> 2022-01-13 00:26:45 +0000
commit32b8c8f33ad68982357c1fa3d0f132d06b070ab5 (patch)
tree578504a572bfe61ddc22cfb6ce5013bcae28882e /compiler/driver/compiler_options.h
parent8515f7fcf0fca795e5408ab691846b23ba608bda (diff)
Expand sharpening's ComputeLoadClassKind to cover cross-dex cases
We can handle some extra cross-dex cases in order to expand the support. Bug: 154012332 Test: ART tests Change-Id: Ic3220d809086b4b3007bf5b6d63789ffb1b91fb9
Diffstat (limited to 'compiler/driver/compiler_options.h')
-rw-r--r--compiler/driver/compiler_options.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/driver/compiler_options.h b/compiler/driver/compiler_options.h
index a31be3f640..326e833191 100644
--- a/compiler/driver/compiler_options.h
+++ b/compiler/driver/compiler_options.h
@@ -26,6 +26,7 @@
#include "base/globals.h"
#include "base/hash_set.h"
#include "base/macros.h"
+#include "base/stl_util.h"
#include "base/utils.h"
#include "optimizing/register_allocator.h"
@@ -374,8 +375,7 @@ class CompilerOptions final {
}
bool WithinOatFile(const DexFile* dex_file) const {
- return std::find(GetDexFilesForOatFile().begin(), GetDexFilesForOatFile().end(), dex_file) !=
- GetDexFilesForOatFile().end();
+ return ContainsElement(GetDexFilesForOatFile(), dex_file);
}
private: