summaryrefslogtreecommitdiff
path: root/runtime/jit/jit.cc
diff options
context:
space:
mode:
author Stefano Cianciulli <scianciulli@google.com> 2023-03-30 12:35:16 +0000
committer Stefano Cianciulli <scianciulli@google.com> 2023-04-05 11:04:51 +0000
commitba87ab5ca06eb85300b3b63f420914f76843a4a5 (patch)
treeb86b5946911a42bc1bcc3cac6321e765219371c4 /runtime/jit/jit.cc
parent2bb753eabb80ad9ed90dfef3693c1e72d3d9f689 (diff)
Fix "readability-redundant-string-cstr" clang-tidy issues
Bug: 264654008 Test: m tidy-art Change-Id: Ic852d58f106187791fa3a0d31829654de41bcb2b
Diffstat (limited to 'runtime/jit/jit.cc')
-rw-r--r--runtime/jit/jit.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/jit/jit.cc b/runtime/jit/jit.cc
index fda5affd16..b231cce0bc 100644
--- a/runtime/jit/jit.cc
+++ b/runtime/jit/jit.cc
@@ -1403,7 +1403,7 @@ uint32_t Jit::CompileMethodsFromBootProfile(
const std::string& profile_file,
Handle<mirror::ClassLoader> class_loader,
bool add_to_queue) {
- unix_file::FdFile profile(profile_file.c_str(), O_RDONLY, true);
+ unix_file::FdFile profile(profile_file, O_RDONLY, true);
if (profile.Fd() == -1) {
PLOG(WARNING) << "No boot profile: " << profile_file;
@@ -1453,7 +1453,7 @@ uint32_t Jit::CompileMethodsFromProfile(
// We don't generate boot profiles on device, therefore we don't
// need to lock the file.
- unix_file::FdFile profile(profile_file.c_str(), O_RDONLY, true);
+ unix_file::FdFile profile(profile_file, O_RDONLY, true);
if (profile.Fd() == -1) {
PLOG(WARNING) << "No profile: " << profile_file;