[Lldb-commits] [lldb] 3972415 - [lldb] Silence -Wpessimizing-move warning
Benjamin Kramer via lldb-commits
lldb-commits at lists.llvm.org
Thu Oct 21 03:59:18 PDT 2021
Author: Benjamin Kramer
Date: 2021-10-21T12:59:00+02:00
New Revision: 39724158d38766f7d8683f78f54d80d174cae96a
URL: https://github.com/llvm/llvm-project/commit/39724158d38766f7d8683f78f54d80d174cae96a
DIFF: https://github.com/llvm/llvm-project/commit/39724158d38766f7d8683f78f54d80d174cae96a.diff
LOG: [lldb] Silence -Wpessimizing-move warning
lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp:3635:10: error: moving a local object in a return statement prevents copy elision [-Werror,-Wpessimizing-move]
return std::move(merged);
^
Added:
Modified:
lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
Removed:
################################################################################
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
index 90b07ad061b0..d8a17755b247 100644
--- a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
+++ b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
@@ -3632,7 +3632,7 @@ SymbolFileDWARF::MergeBlockAbstractParameters(const DWARFDIE &block_die,
}
merged.push_back(*concrete_it);
}
- return std::move(merged);
+ return merged;
}
size_t SymbolFileDWARF::ParseVariablesInFunctionContext(
More information about the lldb-commits
mailing list