diff options
author | Jim Ingham <jingham@apple.com> | 2014-12-19 19:20:44 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2014-12-19 19:20:44 +0000 |
commit | 4af5961caaeec5162f90f7471853fe109689d8d4 (patch) | |
tree | aedfd749e48753d1563194eeb6c6f8b4e544792b /lldb/source/Core/AddressRange.cpp | |
parent | 1b6485457438ff6b1134ec53350a72288dafe57c (diff) | |
download | bcm5719-llvm-4af5961caaeec5162f90f7471853fe109689d8d4.tar.gz bcm5719-llvm-4af5961caaeec5162f90f7471853fe109689d8d4.zip |
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
Diffstat (limited to 'lldb/source/Core/AddressRange.cpp')
-rw-r--r-- | lldb/source/Core/AddressRange.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Core/AddressRange.cpp b/lldb/source/Core/AddressRange.cpp index 3505d56b43e..ac64833884e 100644 --- a/lldb/source/Core/AddressRange.cpp +++ b/lldb/source/Core/AddressRange.cpp @@ -179,7 +179,7 @@ AddressRange::Dump(Stream *s, Target *target, Address::DumpStyle style, Address: { ModuleSP module_sp (GetBaseAddress().GetModule()); if (module_sp) - s->Printf("%s", module_sp->GetFileSpec().GetFilename().AsCString()); + s->Printf("%s", module_sp->GetFileSpec().GetFilename().AsCString("<Unknown>")); } s->AddressRange(vmaddr, vmaddr + GetByteSize(), addr_size); return true; |