summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Santiago Aboy Solanes <solanes@google.com> 2023-08-11 11:11:43 +0100
committer Santiago Aboy Solanes <solanes@google.com> 2023-08-14 11:31:07 +0000
commit6fd477affa9ac2225a9bf5486ea780fa647419b1 (patch)
tree0555d0e22793ba414725a93d50ab62dc572d6e86
parent32967de2c88fc675d9d3f43d6b5613f4fd93f769 (diff)
Avoid extra GetBestInfo call
Test: presubmit Change-Id: I6dc12f00f3d0d436c61128e46486be646d3e3dbe
-rw-r--r--runtime/oat_file_assistant.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/oat_file_assistant.cc b/runtime/oat_file_assistant.cc
index 9f39e05fc1..1843cc8535 100644
--- a/runtime/oat_file_assistant.cc
+++ b/runtime/oat_file_assistant.cc
@@ -1328,7 +1328,7 @@ void OatFileAssistant::GetOptimizationStatus(std::string* out_odex_location,
std::string* out_compilation_reason,
std::string* out_odex_status) {
OatFileInfo& oat_file_info = GetBestInfo();
- const OatFile* oat_file = GetBestInfo().GetFile();
+ const OatFile* oat_file = oat_file_info.GetFile();
if (oat_file == nullptr) {
std::string error_msg;