aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h
diff options
context:
space:
mode:
authorEbuka Ezike <yerimyah1@gmail.com>2025-10-29 18:22:54 +0000
committerGitHub <noreply@github.com>2025-10-29 18:22:54 +0000
commitd87c80bd46d9dc761b048cad48838a039cff214a (patch)
tree7013062747948c1bad197beb9cb29efa6a5c193a /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h
parentba769e125b106c059321de16a760658449b02c8a (diff)
downloadllvm-d87c80bd46d9dc761b048cad48838a039cff214a.zip
llvm-d87c80bd46d9dc761b048cad48838a039cff214a.tar.gz
llvm-d87c80bd46d9dc761b048cad48838a039cff214a.tar.bz2
[lldb] Do not narrow `GetIndexOfChildWithName` return type to int (#165453)
Modify the python wrapper to return uint32_t, which prevents incorrect child name-to-index mapping and avoids performing redundant operations on non-existent SBValues.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h')
-rw-r--r--lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h
index dedac28..00ae59c 100644
--- a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h
+++ b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h
@@ -122,7 +122,7 @@ public:
GetChildAtIndex(const StructuredData::ObjectSP &implementor,
uint32_t idx) override;
- llvm::Expected<int>
+ llvm::Expected<uint32_t>
GetIndexOfChildWithName(const StructuredData::ObjectSP &implementor,
const char *child_name) override;