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
This commit is contained in:
Greg Clayton 2014-02-21 19:06:44 +00:00
parent 6ca35f2fff
commit 8fe3d4779d
1 changed files with 2 additions and 2 deletions

View File

@ -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.