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>

llvm-svn: 238231
This commit is contained in:
Greg Clayton 2015-05-26 18:29:03 +00:00
parent b670d37105
commit df9f6364b2
1 changed files with 1 additions and 1 deletions

View File

@ -202,7 +202,7 @@ SymbolVendorMacOSX::CreateInstance (const lldb::ModuleSP &module_sp, lldb_privat
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);
}