From: Chandler Carruth Date: Sat, 29 Dec 2012 13:00:47 +0000 (+0000) Subject: Fix a typo that caused a few standard library implementations of sort to X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5ba0c8e4077902f53e5f3e8271e470a1d8c1c074;p=clang 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 --- 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;