aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2012-12-29 13:00:47 +0000
committerChandler Carruth <chandlerc@gmail.com>2012-12-29 13:00:47 +0000
commit5ba0c8e4077902f53e5f3e8271e470a1d8c1c074 (patch)
tree0162c720bd42f8d1d988ebc569df5114ebf4d7e0 /lib
parentf1757659dd59a0e07e8607fca8d3f052e04d0aec (diff)
Fix a typo that caused a few standard library implementations of sort to
get the wrong answer. Wasn't caught by my implementation sadly... git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171222 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Driver/ToolChains.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp
index 426bcf16ef..345f3d6b3c 100644
--- a/lib/Driver/ToolChains.cpp
+++ b/lib/Driver/ToolChains.cpp
@@ -986,7 +986,7 @@ bool Generic_GCC::GCCVersion::operator<(const GCCVersion &RHS) const {
if (RHS.PatchSuffix.empty())
return true;
if (PatchSuffix.empty())
- return true;
+ return false;
// Provide a lexicographic sort to make this a total ordering.
return PatchSuffix < RHS.PatchSuffix;