]> granicus.if.org Git - llvm/commitdiff
[ADT] Fix a typo in isOSVersionLT that breaks the Micro version check
authorBob Wilson <bob.wilson@apple.com>
Thu, 31 Jan 2019 17:58:59 +0000 (17:58 +0000)
committerBob Wilson <bob.wilson@apple.com>
Thu, 31 Jan 2019 17:58:59 +0000 (17:58 +0000)
The original commit of this function (r129800 in 2011) had a typo where
part of the "Micro" version check was actually comparing against the "Minor"
version number.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@352776 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/Triple.h

index 7aa72fd215f6f4f316cfb25e72c76e4167b5dc88..55389eda732b54ff13701b26a0690928e703df67 100644 (file)
@@ -414,7 +414,7 @@ public:
     if (LHS[1] != Minor)
       return LHS[1] < Minor;
     if (LHS[2] != Micro)
-      return LHS[1] < Micro;
+      return LHS[2] < Micro;
 
     return false;
   }