From ed5faa475b401aa91284d19afb52b2927aa59c97 Mon Sep 17 00:00:00 2001 From: Med Ismail Bennani Date: Mon, 30 Oct 2023 17:24:27 -0700 Subject: [lldb] Fix build failure introduced in 484038416d06 (NFC) Signed-off-by: Med Ismail Bennani --- .../Python/Interfaces/ScriptedThreadPlanPythonInterface.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedThreadPlanPythonInterface.cpp') diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedThreadPlanPythonInterface.cpp b/lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedThreadPlanPythonInterface.cpp index df9f7db6f62b..0a1bcb5b92c7 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedThreadPlanPythonInterface.cpp +++ b/lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedThreadPlanPythonInterface.cpp @@ -40,7 +40,8 @@ ScriptedThreadPlanPythonInterface::ExplainsStop(Event *event) { Status error; StructuredData::ObjectSP obj = Dispatch("explains_stop", error, event); - if (!CheckStructuredDataObject(LLVM_PRETTY_FUNCTION, obj, error)) + if (!ScriptedInterface::CheckStructuredDataObject(LLVM_PRETTY_FUNCTION, obj, + error)) return error.ToError(); return obj->GetBooleanValue(); @@ -51,7 +52,8 @@ ScriptedThreadPlanPythonInterface::ShouldStop(Event *event) { Status error; StructuredData::ObjectSP obj = Dispatch("should_stop", error, event); - if (!CheckStructuredDataObject(LLVM_PRETTY_FUNCTION, obj, error)) + if (!ScriptedInterface::CheckStructuredDataObject(LLVM_PRETTY_FUNCTION, obj, + error)) return error.ToError(); return obj->GetBooleanValue(); @@ -61,7 +63,8 @@ llvm::Expected ScriptedThreadPlanPythonInterface::IsStale() { Status error; StructuredData::ObjectSP obj = Dispatch("is_stale", error); - if (!CheckStructuredDataObject(LLVM_PRETTY_FUNCTION, obj, error)) + if (!ScriptedInterface::CheckStructuredDataObject(LLVM_PRETTY_FUNCTION, obj, + error)) return error.ToError(); return obj->GetBooleanValue(); @@ -71,7 +74,8 @@ lldb::StateType ScriptedThreadPlanPythonInterface::GetRunState() { Status error; StructuredData::ObjectSP obj = Dispatch("should_step", error); - if (!CheckStructuredDataObject(LLVM_PRETTY_FUNCTION, obj, error)) + if (!ScriptedInterface::CheckStructuredDataObject(LLVM_PRETTY_FUNCTION, obj, + error)) return lldb::eStateStepping; return static_cast(obj->GetUnsignedIntegerValue( -- cgit v1.2.3