[cfe-commits] r171222 - /cfe/trunk/lib/Driver/ToolChains.cpp

Chandler Carruth chandlerc at gmail.com
Sat Dec 29 05:00:47 PST 2012


Author: chandlerc
Date: Sat Dec 29 07:00:47 2012
New Revision: 171222

URL: http://llvm.org/viewvc/llvm-project?rev=171222&view=rev
Log:
Fix a typo that caused a few standard library implementations of sort to
get the wrong answer. Wasn't caught by my implementation sadly...

Modified:
    cfe/trunk/lib/Driver/ToolChains.cpp

Modified: cfe/trunk/lib/Driver/ToolChains.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains.cpp?rev=171222&r1=171221&r2=171222&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/ToolChains.cpp (original)
+++ cfe/trunk/lib/Driver/ToolChains.cpp Sat Dec 29 07:00:47 2012
@@ -986,7 +986,7 @@
     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;





More information about the cfe-commits mailing list