summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authorAlex Zinenko <zinenko@google.com>2022-01-19 13:42:49 +0100
committerAlex Zinenko <zinenko@google.com>2022-02-01 17:49:18 +0100
commit22fea18e5f4e693376f288b598273352cd4ab99f (patch)
tree8e3041d56a31f2034ec52395efda26659b0334a4 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
parent87387c403b47ad052249bb7e7068123067d1b6e9 (diff)
[mlir] Better error message in PybindAdaptors.h
When attempting to cast a pybind11 handle to an MLIR C API object through capsules, the binding code would attempt to directly access the "_CAPIPtr" attribute on the object, leading to a rather obscure AttributeError when the attribute was missing, e.g., on non-MLIR types. Check for its presence and throw a TypeError instead. Depends On D117646 Reviewed By: stellaraccident Differential Revision: https://reviews.llvm.org/D117658
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions