mirror of
https://github.com/intel/llvm.git
synced 2026-01-22 15:41:35 +08:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user