diff options
author | Greg Clayton <gclayton@apple.com> | 2014-02-21 19:06:44 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2014-02-21 19:06:44 +0000 |
commit | 8fe3d4779dce7832b70deddbb480248937307c49 (patch) | |
tree | f808ad5a92fba02af7451c8875dd99c839276227 /lldb/source/Interpreter/ScriptInterpreterPython.cpp | |
parent | 6ca35f2fff286a618b28b0ead82fbbb979f71702 (diff) | |
download | bcm5719-llvm-8fe3d4779dce7832b70deddbb480248937307c49.tar.gz bcm5719-llvm-8fe3d4779dce7832b70deddbb480248937307c49.zip |
Don't crash when we build with python enabled, yet we don't link in the lldb::SB* API layer.
Previously the lldb-platform and lldb-gdbserver would crash.
llvm-svn: 201872
Diffstat (limited to 'lldb/source/Interpreter/ScriptInterpreterPython.cpp')
-rw-r--r-- | lldb/source/Interpreter/ScriptInterpreterPython.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Interpreter/ScriptInterpreterPython.cpp b/lldb/source/Interpreter/ScriptInterpreterPython.cpp index f0c32b45b49..389355d9bf9 100644 --- a/lldb/source/Interpreter/ScriptInterpreterPython.cpp +++ b/lldb/source/Interpreter/ScriptInterpreterPython.cpp @@ -2542,8 +2542,8 @@ ScriptInterpreterPython::InitializePrivate () Py_InitializeEx (0); // Initialize SWIG after setting up python - assert (g_swig_init_callback != NULL); - g_swig_init_callback (); + if (g_swig_init_callback) + g_swig_init_callback (); // Update the path python uses to search for modules to include the current directory. |