Fix a little think-o. In FileSpec::operator== we were trying to figure out whether the rhs file was resolved or not by comparing
the resolved version of the rhs FileSpec's directory name with the lhs FileSpec's directory name. We really meant to compare it with the rhs FileSpec's directory name... <rdar://problem/12438838> llvm-svn: 167349
This commit is contained in:
parent
da1980f697
commit
a537f6ce37
|
@ -420,7 +420,7 @@ FileSpec::operator== (const FileSpec& rhs) const
|
|||
// rhs's path wasn't resolved but now it is. Check if the resolved
|
||||
// directory is the same as rhs's unresolved directory, and if so,
|
||||
// we can mark this object as resolved to avoid more future resolves
|
||||
rhs.m_is_resolved = (m_directory == resolved_rhs.m_directory);
|
||||
rhs.m_is_resolved = (rhs.m_directory == resolved_rhs.m_directory);
|
||||
}
|
||||
else
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue