summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Santiago Aboy Solanes <solanes@google.com> 2023-02-02 10:41:36 +0000
committer Santiago Aboy Solanes <solanes@google.com> 2023-02-03 11:21:14 +0000
commitab7ce90b00cb9899feb1638eef4efc27ff65ddd0 (patch)
treeb2172059ee49174efc4c1bfc71f654f02dde8ad3
parent717ffa8fd155e591e16fa4ac1cf4357f974450da (diff)
Add std::move in SetHandlerDexPcList
Based on the comment in https://android-review.git.corp.google.com/c/platform/art/+/2253915/3/runtime/quick_exception_handler.h#b114 we need to add a std::move to avoid a copy. Test: art/test/testrunner/testrunner.py --host --64 --optimizing -b Change-Id: Ife4f77dbed0effa4760f6f06c63d85e46efc8ecb
-rw-r--r--runtime/quick_exception_handler.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/quick_exception_handler.h b/runtime/quick_exception_handler.h
index f3ce6241de..39462e55b4 100644
--- a/runtime/quick_exception_handler.h
+++ b/runtime/quick_exception_handler.h
@@ -110,7 +110,7 @@ class QuickExceptionHandler {
}
void SetHandlerDexPcList(std::vector<uint32_t>&& handler_dex_pc_list) {
- handler_dex_pc_list_ = handler_dex_pc_list;
+ handler_dex_pc_list_ = std::move(handler_dex_pc_list);
}
uint32_t GetCatchStackMapRow() const {