[Lldb-commits] [lldb] r238231 - 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.
Greg Clayton
gclayton at apple.com
Tue May 26 11:29:03 PDT 2015
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);
}
More information about the lldb-commits
mailing list