diff options
Diffstat (limited to 'lldb/source/Expression/REPL.cpp')
-rw-r--r-- | lldb/source/Expression/REPL.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/Expression/REPL.cpp b/lldb/source/Expression/REPL.cpp index 4f81ee3e56dd..fcd083684738 100644 --- a/lldb/source/Expression/REPL.cpp +++ b/lldb/source/Expression/REPL.cpp @@ -283,6 +283,8 @@ void REPL::IOHandlerInputComplete(IOHandler &io_handler, std::string &code) { PersistentExpressionState *persistent_state = m_target.GetPersistentExpressionStateForLanguage(GetLanguage()); + if (!persistent_state) + return; const size_t var_count_before = persistent_state->GetSize(); |