diff options
author | Sean Callanan <scallanan@apple.com> | 2013-10-03 22:27:29 +0000 |
---|---|---|
committer | Sean Callanan <scallanan@apple.com> | 2013-10-03 22:27:29 +0000 |
commit | ddd7a2a65b24346f3d736d16315019fb54601e5b (patch) | |
tree | 0b7e1240d0e85517fd394df3a68663b6e92bf0a4 /lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp | |
parent | 54e14615e797d8cbd62fc27ba24a54de76bb380a (diff) | |
download | bcm5719-llvm-ddd7a2a65b24346f3d736d16315019fb54601e5b.tar.gz bcm5719-llvm-ddd7a2a65b24346f3d736d16315019fb54601e5b.zip |
Changed the bool conversion operator on ConstString
to be explicit, to prevent horrid things like
std::string a = ConstString("foo")
from taking the path ConstString -> bool -> char
-> std::string.
This fixes, among other things, ClangFunction.
<rdar://problem/15137989>
llvm-svn: 191934
Diffstat (limited to 'lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp')
-rw-r--r-- | lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp index a0430e3d52b..856c42c2c9a 100644 --- a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp +++ b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp @@ -847,7 +847,7 @@ SymbolFileDWARFDebugMap::ResolveSymbolContext (const FileSpec& file_spec, uint32 if (GetFileSpecForSO (i, so_file_spec)) { // Match the full path if the incoming file_spec has a directory (not just a basename) - const bool full_match = file_spec.GetDirectory(); + const bool full_match = (bool)file_spec.GetDirectory(); resolve = FileSpec::Equal (file_spec, so_file_spec, full_match); } } |