From 765d138324aa52e12c08e6cef86d331786420b5f Mon Sep 17 00:00:00 2001 From: Bob Wilson Date: Thu, 31 Jan 2019 17:58:59 +0000 Subject: [PATCH] [ADT] Fix a typo in isOSVersionLT that breaks the Micro version check 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/ADT/Triple.h b/include/llvm/ADT/Triple.h index 7aa72fd215f..55389eda732 100644 --- a/include/llvm/ADT/Triple.h +++ b/include/llvm/ADT/Triple.h @@ -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; } -- 2.50.1