From 254c4d174ea3bd3601818b003fc169cdedf24fb9 Mon Sep 17 00:00:00 2001 From: Med Ismail Bennani Date: Thu, 22 Jul 2021 20:54:27 +0000 Subject: [lldb] Fix build failure introduced by 3d4cadfb26437bd686ca8177f5454a366fed59eb This patch updates the `ScriptedProcess::GetGenericInteger` return type to `llvm::Optional` to match implementation. Differential Revision: https://reviews.llvm.org/D105788 Signed-off-by: Med Ismail Bennani --- .../Plugins/ScriptInterpreter/Python/ScriptedProcessPythonInterface.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptedProcessPythonInterface.h') diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptedProcessPythonInterface.h b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptedProcessPythonInterface.h index 1b5f347b9718..30cb5a882af2 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptedProcessPythonInterface.h +++ b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptedProcessPythonInterface.h @@ -51,7 +51,8 @@ public: bool IsAlive() override; protected: - llvm::Optional GetGenericInteger(llvm::StringRef method_name); + llvm::Optional + GetGenericInteger(llvm::StringRef method_name); Status GetStatusFromMethod(llvm::StringRef method_name); private: -- cgit v1.2.3