[Lldb-commits] [lldb] r236287 - Don't return nullptr when you mean to return an empty llvm::StringRef...

Jim Ingham jingham at apple.com
Thu Apr 30 16:45:07 PDT 2015


Author: jingham
Date: Thu Apr 30 18:45:07 2015
New Revision: 236287

URL: http://llvm.org/viewvc/llvm-project?rev=236287&view=rev
Log:
Don't return nullptr when you mean to return an empty llvm::StringRef...

<rdar://problem/20747164>

Modified:
    lldb/trunk/source/Interpreter/PythonDataObjects.cpp

Modified: lldb/trunk/source/Interpreter/PythonDataObjects.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Interpreter/PythonDataObjects.cpp?rev=236287&r1=236286&r2=236287&view=diff
==============================================================================
--- lldb/trunk/source/Interpreter/PythonDataObjects.cpp (original)
+++ lldb/trunk/source/Interpreter/PythonDataObjects.cpp Thu Apr 30 18:45:07 2015
@@ -178,7 +178,7 @@ PythonString::GetString() const
 {
     if (m_py_obj)
         return llvm::StringRef(PyString_AsString(m_py_obj), GetSize());
-    return nullptr;
+    return llvm::StringRef();
 }
 
 size_t





More information about the lldb-commits mailing list