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
This commit is contained in:
Sean Callanan
2013-10-03 22:27:29 +00:00
parent 54e14615e7
commit ddd7a2a65b
13 changed files with 23 additions and 23 deletions

View File

@@ -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);
}
}