]> granicus.if.org Git - clang/commitdiff
Fix a typo that caused a few standard library implementations of sort to
authorChandler Carruth <chandlerc@gmail.com>
Sat, 29 Dec 2012 13:00:47 +0000 (13:00 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sat, 29 Dec 2012 13:00:47 +0000 (13:00 +0000)
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

lib/Driver/ToolChains.cpp

index 426bcf16efa643fc5298a0e80e84777ac9e61e58..345f3d6b3c8b4a41aed521bc39f3c801864aee43 100644 (file)
@@ -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;