[cfe-commits] r170890 - /cfe/trunk/lib/Driver/ToolChains.cpp
Rafael Espindola
rafael.espindola at gmail.com
Fri Dec 21 05:22:55 PST 2012
Author: rafael
Date: Fri Dec 21 07:22:55 2012
New Revision: 170890
URL: http://llvm.org/viewvc/llvm-project?rev=170890&view=rev
Log:
Update comments.
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=170890&r1=170889&r2=170890&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/ToolChains.cpp (original)
+++ cfe/trunk/lib/Driver/ToolChains.cpp Fri Dec 21 07:22:55 2012
@@ -970,9 +970,8 @@
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;
More information about the cfe-commits
mailing list