[Lldb-commits] [lldb] r167349 - /lldb/trunk/source/Host/common/FileSpec.cpp
Jim Ingham
jingham at apple.com
Fri Nov 2 19:12:46 PDT 2012
Author: jingham
Date: Fri Nov 2 21:12:46 2012
New Revision: 167349
URL: http://llvm.org/viewvc/llvm-project?rev=167349&view=rev
Log:
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>
Modified:
lldb/trunk/source/Host/common/FileSpec.cpp
Modified: lldb/trunk/source/Host/common/FileSpec.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/common/FileSpec.cpp?rev=167349&r1=167348&r2=167349&view=diff
==============================================================================
--- lldb/trunk/source/Host/common/FileSpec.cpp (original)
+++ lldb/trunk/source/Host/common/FileSpec.cpp Fri Nov 2 21:12:46 2012
@@ -420,7 +420,7 @@
// 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;
More information about the lldb-commits
mailing list