[lldb] Fix some warnings in the python plugin

This commit is contained in:
Pavel Labath 2019-11-12 14:33:52 +01:00
parent 5022a5fcae
commit 1dfb1a85e7
2 changed files with 3 additions and 2 deletions

View File

@ -130,7 +130,7 @@ template <typename T> T Take(PyObject *obj) {
assert(!PyErr_Occurred());
T thing(PyRefType::Owned, obj);
assert(thing.IsValid());
return std::move(thing);
return thing;
}
// Retain a reference you have borrowed, and turn it into
@ -148,7 +148,7 @@ template <typename T> T Retain(PyObject *obj) {
assert(!PyErr_Occurred());
T thing(PyRefType::Borrowed, obj);
assert(thing.IsValid());
return std::move(thing);
return thing;
}
// This class can be used like a utility function to convert from

View File

@ -1190,6 +1190,7 @@ bool ScriptInterpreterPythonImpl::ExecuteOneLineWithReturn(
return true;
}
}
llvm_unreachable("Fully covered switch!");
}
Status ScriptInterpreterPythonImpl::ExecuteMultipleLines(