[Lldb-commits] [PATCH] D68918: eliminate virtual methods from PythonDataObjects
Lawrence D'Anna via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Mon Oct 14 15:10:03 PDT 2019
lawrence_danna marked an inline comment as done.
lawrence_danna added inline comments.
================
Comment at: lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h:188-192
// PythonObject is implicitly convertible to PyObject *, which will call the
// wrong overload. We want to explicitly disallow this, since a PyObject
// *always* owns its reference. Therefore the overload which takes a
// PyRefType doesn't make sense, and the copy constructor should be used.
void Reset(PyRefType type, const PythonObject &ref) = delete;
----------------
labath wrote:
> BTW, is this needed? My impression was that PythonObject was/is not convertible to a `PyObject*`..
Yea it's not actually convertible, i'll remove this.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D68918/new/
https://reviews.llvm.org/D68918
More information about the lldb-commits
mailing list