forked from OSchip/llvm-project
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:
parent
b670d37105
commit
df9f6364b2
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue