diff --git a/lldb/include/lldb/API/SBCommandInterpreter.h b/lldb/include/lldb/API/SBCommandInterpreter.h index 3330a6f20034..b7f5b3bf3396 100644 --- a/lldb/include/lldb/API/SBCommandInterpreter.h +++ b/lldb/include/lldb/API/SBCommandInterpreter.h @@ -30,6 +30,7 @@ public: eBroadcastBitAsynchronousErrorData = (1 << 4) }; + SBCommandInterpreter(); SBCommandInterpreter(const lldb::SBCommandInterpreter &rhs); ~SBCommandInterpreter(); @@ -317,9 +318,8 @@ public: protected: friend class lldb_private::CommandPluginInterfaceImplementation; - SBCommandInterpreter( - lldb_private::CommandInterpreter *interpreter_ptr = - nullptr); // Access using SBDebugger::GetCommandInterpreter(); + /// Access using SBDebugger::GetCommandInterpreter(); + SBCommandInterpreter(lldb_private::CommandInterpreter *interpreter_ptr); lldb_private::CommandInterpreter &ref(); lldb_private::CommandInterpreter *get(); diff --git a/lldb/source/API/SBCommandInterpreter.cpp b/lldb/source/API/SBCommandInterpreter.cpp index 396c0eef0603..d275da933919 100644 --- a/lldb/source/API/SBCommandInterpreter.cpp +++ b/lldb/source/API/SBCommandInterpreter.cpp @@ -83,6 +83,10 @@ protected: }; } // namespace lldb_private +SBCommandInterpreter::SBCommandInterpreter() : m_opaque_ptr() { + LLDB_INSTRUMENT_VA(this); +} + SBCommandInterpreter::SBCommandInterpreter(CommandInterpreter *interpreter) : m_opaque_ptr(interpreter) { LLDB_INSTRUMENT_VA(this, interpreter);