summaryrefslogtreecommitdiff
path: root/compiler/driver/compiler_options.cc
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2024-05-22 13:04:28 +0200
committer VladimĂ­r Marko <vmarko@google.com> 2024-05-23 09:49:01 +0000
commit068bee12ad89e9ed46da04ec8791cd00d917b6f5 (patch)
treeac6deed76ecdb32be8cb4eab8fe6e542825c7499 /compiler/driver/compiler_options.cc
parent1495449f61fc77749b004b1400107d8027b3c4f5 (diff)
Fix class status check in `InitializeClassVisitor`.
And address other late comments on https://android-review.googlesource.com/2163021 . Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Test: run-gtests.sh Test: testrunner.py --target --optimizing Bug: 162110941 Change-Id: I9eb49179633f94044b2060231babd156787bbd14
Diffstat (limited to 'compiler/driver/compiler_options.cc')
-rw-r--r--compiler/driver/compiler_options.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/driver/compiler_options.cc b/compiler/driver/compiler_options.cc
index 87dbfee412..8b415c641d 100644
--- a/compiler/driver/compiler_options.cc
+++ b/compiler/driver/compiler_options.cc
@@ -135,8 +135,8 @@ bool CompilerOptions::IsImageClass(const char* descriptor) const {
return image_classes_.find(std::string_view(descriptor)) != image_classes_.end();
}
-bool CompilerOptions::IsPreloadedClass(const char* pretty_descriptor) const {
- return preloaded_classes_.find(std::string_view(pretty_descriptor)) != preloaded_classes_.end();
+bool CompilerOptions::IsPreloadedClass(std::string_view pretty_descriptor) const {
+ return preloaded_classes_.find(pretty_descriptor) != preloaded_classes_.end();
}
bool CompilerOptions::ShouldCompileWithClinitCheck(ArtMethod* method) const {