diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2012-12-21 13:22:55 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2012-12-21 13:22:55 +0000 |
commit | bb6a7e047aefd9ba4bab3ce1dcbb7ce2e2895b07 (patch) | |
tree | c3513f100c2fc192944c7bdce2f9d308c365e71f /lib/Driver/ToolChains.cpp | |
parent | 9c10d6157164ce3b6af1deef39d661c579e0afc3 (diff) |
Update comments.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@170890 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/ToolChains.cpp')
-rw-r--r-- | lib/Driver/ToolChains.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp index 1a5f2b2ec6..7cde397bf9 100644 --- a/lib/Driver/ToolChains.cpp +++ b/lib/Driver/ToolChains.cpp @@ -970,9 +970,8 @@ bool Generic_GCC::GCCVersion::operator<(const GCCVersion &RHS) const { if (Minor < RHS.Minor) return true; if (Minor > RHS.Minor) return false; // Note that we rank versions with *no* patch specified is better than ones - // hard-coding a patch version. Thus if the RHS has no patch, it always - // wins, and the LHS only wins if it has no patch and the RHS does have - // a patch. + // hard-coding a patch version. Thus if only the RHS or LHS has no patch, + // it wins. if (RHS.Patch == -1 && Patch != -1) return true; if (RHS.Patch != -1 && Patch == -1) return false; if (Patch < RHS.Patch) return true; if (Patch > RHS.Patch) return false; |