Audit uses of ConstString::AsCString() to make sure they weren't assuming

they would always get a non-NULL string back.

<rdar://problem/19298575>

llvm-svn: 224602
This commit is contained in:
Jim Ingham
2014-12-19 19:20:44 +00:00
parent 1b64854574
commit 4af5961caa
8 changed files with 16 additions and 14 deletions

View File

@@ -96,7 +96,7 @@ AddressResolverFileLine::GetDepth()
void
AddressResolverFileLine::GetDescription (Stream *s)
{
s->Printf ("File and line address - file: \"%s\" line: %u", m_file_spec.GetFilename().AsCString(), m_line_number);
s->Printf ("File and line address - file: \"%s\" line: %u", m_file_spec.GetFilename().AsCString("<Unknown>"), m_line_number);
}