Author: gclayton
Date: Tue May 26 13:29:03 2015
New Revision: 238231

URL: http://llvm.org/viewvc/llvm-project?rev=238231&view=rev
Log:
Fix some logic where we used to have char arrays, but we now use std::string. 
Use the correctly API to detect if they are not empty.

<rdar://problem/21090173>


Modified:
    lldb/trunk/source/Plugins/SymbolVendor/MacOSX/SymbolVendorMacOSX.cpp

Modified: lldb/trunk/source/Plugins/SymbolVendor/MacOSX/SymbolVendorMacOSX.cpp
URL: 
http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/SymbolVendor/MacOSX/SymbolVendorMacOSX.cpp?rev=238231&r1=238230&r2=238231&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/SymbolVendor/MacOSX/SymbolVendorMacOSX.cpp 
(original)
+++ lldb/trunk/source/Plugins/SymbolVendor/MacOSX/SymbolVendorMacOSX.cpp Tue 
May 26 13:29:03 2015
@@ -202,7 +202,7 @@ SymbolVendorMacOSX::CreateInstance (cons
                                             
                                             
plist.GetValueAsString("DBGBuildSourcePath", DBGBuildSourcePath);
                                             
plist.GetValueAsString("DBGSourcePath", DBGSourcePath);
-                                            if (DBGBuildSourcePath[0] && 
DBGSourcePath[0])
+                                            if (!DBGBuildSourcePath.empty() && 
!DBGSourcePath.empty())
                                             {
                                                 
module_sp->GetSourceMappingList().Append (ConstString(DBGBuildSourcePath), 
ConstString(DBGSourcePath), true);
                                             }


_______________________________________________
lldb-commits mailing list
lldb-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits

Reply via email to