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 | 92e37d31e7ad24e712e83ecbc6a8a53eb3a36fd6 (patch) | |
| tree | d3d7c5d753807656d9d8b3b490b0a04303aa5a23 /clang/lib | |
| parent | fe817bdb88ee7cb5c3d7d1ffeede4e83358d9416 (diff) | |
| download | bcm5719-llvm-92e37d31e7ad24e712e83ecbc6a8a53eb3a36fd6.tar.gz bcm5719-llvm-92e37d31e7ad24e712e83ecbc6a8a53eb3a36fd6.zip | |
Update comments.
llvm-svn: 170890
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/Driver/ToolChains.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/Driver/ToolChains.cpp b/clang/lib/Driver/ToolChains.cpp index 1a5f2b2ec6f..7cde397bf95 100644 --- a/clang/lib/Driver/ToolChains.cpp +++ b/clang/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; |

