summaryrefslogtreecommitdiffstats
path: root/libbacktrace
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2016-08-01 20:23:10 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-08-01 20:23:10 +0000
commit4c4fa90462afc8b187a65238f26d9b66db66e428 (patch)
tree06f6b305245ef7a0c4155c132e00d90f7051a9a4 /libbacktrace
parent740c4788a0669989358f22fc822e1c1d206a4f9f (diff)
parent4efbce14b5b9075f0c190feb6603464f6207a24e (diff)
downloadcore-4c4fa90462afc8b187a65238f26d9b66db66e428.tar.gz
core-4c4fa90462afc8b187a65238f26d9b66db66e428.tar.bz2
core-4c4fa90462afc8b187a65238f26d9b66db66e428.zip
Merge \"Fix clang-tidy performance warnings in syste/core.\"
am: 4efbce14b5 Change-Id: I84f6b0134fae6e9f40710f243f4825e3f31fa15f
Diffstat (limited to 'libbacktrace')
-rw-r--r--libbacktrace/backtrace_offline_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbacktrace/backtrace_offline_test.cpp b/libbacktrace/backtrace_offline_test.cpp
index 88a3533a2..d6dc2c960 100644
--- a/libbacktrace/backtrace_offline_test.cpp
+++ b/libbacktrace/backtrace_offline_test.cpp
@@ -73,7 +73,7 @@ static ucontext_t GetUContextFromUnwContext(const unw_context_t& unw_context) {
return ucontext;
}
-static void OfflineBacktraceFunctionCall(std::function<int(void (*)(void*), void*)> function,
+static void OfflineBacktraceFunctionCall(const std::function<int(void (*)(void*), void*)>& function,
std::vector<uintptr_t>* pc_values) {
// Create a thread to generate the needed stack and registers information.
g_exit_flag = false;