Skip to content

Commit 3972415

Browse files
committed
[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); ^
1 parent 2ace1e5 commit 3972415

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3632,7 +3632,7 @@ SymbolFileDWARF::MergeBlockAbstractParameters(const DWARFDIE &block_die,
36323632
}
36333633
merged.push_back(*concrete_it);
36343634
}
3635-
return std::move(merged);
3635+
return merged;
36363636
}
36373637

36383638
size_t SymbolFileDWARF::ParseVariablesInFunctionContext(

0 commit comments

Comments
 (0)