From eecb1078280bfddc456af51882afc335e5ba1f35 Mon Sep 17 00:00:00 2001 From: Yi Kong Date: Mon, 12 Aug 2024 18:14:57 +0800 Subject: [PATCH] Remove unnecessary std::move Moving a temporary object prevents copy elision, and could reduce performance. This fixes -Wpessimizing-move compiler warning. Test: presubmit Bug: 154270751 Change-Id: I4900bcfd14d461f7ded0500eca0a6b386ed59c8f --- debuggerd/tombstoned/tombstoned.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debuggerd/tombstoned/tombstoned.cpp b/debuggerd/tombstoned/tombstoned.cpp index fa67d46e6..2c7237934 100644 --- a/debuggerd/tombstoned/tombstoned.cpp +++ b/debuggerd/tombstoned/tombstoned.cpp @@ -158,7 +158,7 @@ class CrashQueue { } } - return std::move(result); + return result; } std::optional get_output(DebuggerdDumpType dump_type) {