Remove unnecessary std::moves [NFC]

These trigger the following error:

error: moving a temporary object prevents copy elision [-Werror,-Wpessimizing-move]
This commit is contained in:
Sterling Augustine
2023-07-13 19:22:45 -07:00
parent ef33d6cbfc
commit 28c33805d4

View File

@@ -1126,11 +1126,11 @@ static SBError LLDBSwigPythonCallLocateModuleCallback(
PyErr_Cleaner py_err_cleaner(true);
PythonObject module_spec_arg = SWIGBridge::ToSWIGWrapper(
std::move(std::make_unique<SBModuleSpec>(module_spec_sb)));
std::make_unique<SBModuleSpec>(module_spec_sb));
PythonObject module_file_spec_arg = SWIGBridge::ToSWIGWrapper(
std::move(std::make_unique<SBFileSpec>(module_file_spec_sb)));
std::make_unique<SBFileSpec>(module_file_spec_sb));
PythonObject symbol_file_spec_arg = SWIGBridge::ToSWIGWrapper(
std::move(std::make_unique<SBFileSpec>(symbol_file_spec_sb)));
std::make_unique<SBFileSpec>(symbol_file_spec_sb));
PythonCallable callable =
Retain<PythonCallable>(reinterpret_cast<PyObject *>(callback_baton));