summaryrefslogtreecommitdiffstats
path: root/lldb/source/Host/common/FileSpec.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2012-11-03 02:12:46 +0000
committerJim Ingham <jingham@apple.com>2012-11-03 02:12:46 +0000
commita537f6ce3723eaed680d70fde02a93bebbd1d102 (patch)
tree0db6880459a22b55a85a664de7fee1a2fe773388 /lldb/source/Host/common/FileSpec.cpp
parentda1980f6977216d008ddae8dfce0361141fc9bd5 (diff)
downloadbcm5719-llvm-a537f6ce3723eaed680d70fde02a93bebbd1d102.tar.gz
bcm5719-llvm-a537f6ce3723eaed680d70fde02a93bebbd1d102.zip
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
Diffstat (limited to 'lldb/source/Host/common/FileSpec.cpp')
-rw-r--r--lldb/source/Host/common/FileSpec.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Host/common/FileSpec.cpp b/lldb/source/Host/common/FileSpec.cpp
index 5109695ad20..4aa83d3e7d8 100644
--- a/lldb/source/Host/common/FileSpec.cpp
+++ b/lldb/source/Host/common/FileSpec.cpp
@@ -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;
OpenPOWER on IntegriCloud