Convert lldb::ModuleSP to use an instrusive ref counted pointer.
We had some cases where getting the shared pointer for a module from
the global module list was causing a performance issue when debugging
with DWARF in .o files. Now that the module uses intrusive ref counts,
we can easily convert any pointer to a shared pointer.



git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@139983 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Commands/CommandCompletions.cpp b/source/Commands/CommandCompletions.cpp
index ff3c0c4..3ea62aa 100644
--- a/source/Commands/CommandCompletions.cpp
+++ b/source/Commands/CommandCompletions.cpp
@@ -684,7 +684,7 @@
     bool complete
 )
 {
-    if (context.module_sp != NULL)
+    if (context.module_sp)
     {
         const char *cur_file_name = context.module_sp->GetFileSpec().GetFilename().GetCString();
         const char *cur_dir_name = context.module_sp->GetFileSpec().GetDirectory().GetCString();