From: Bob Wilson Date: Thu, 31 Jan 2019 17:58:59 +0000 (+0000) Subject: [ADT] Fix a typo in isOSVersionLT that breaks the Micro version check X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=765d138324aa52e12c08e6cef86d331786420b5f;p=llvm [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 --- 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; }