[compiler-rt] cab4b3b - Fix bug in newly added VersionBase::operator>=

Julian Lettner via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 3 15:26:48 PDT 2020


Author: Julian Lettner
Date: 2020-06-03T15:26:36-07:00
New Revision: cab4b3b8e3a4a2822e459e5f103e49fcab16efaf

URL: https://github.com/llvm/llvm-project/commit/cab4b3b8e3a4a2822e459e5f103e49fcab16efaf
DIFF: https://github.com/llvm/llvm-project/commit/cab4b3b8e3a4a2822e459e5f103e49fcab16efaf.diff

LOG: Fix bug in newly added VersionBase::operator>=

Fixup for ba6b1b4353e33a7a36bcbad1d1c1157826197fd2.

Added: 
    

Modified: 
    compiler-rt/lib/sanitizer_common/sanitizer_mac.h

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/sanitizer_common/sanitizer_mac.h b/compiler-rt/lib/sanitizer_common/sanitizer_mac.h
index 806aba955288..922307a9b977 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_mac.h
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_mac.h
@@ -41,7 +41,7 @@ struct VersionBase {
     return major == other.major && minor == other.minor;
   }
   bool operator>=(const VersionType &other) const {
-    return major >= other.major ||
+    return major > other.major ||
            (major == other.major && minor >= other.minor);
   }
 };


        


More information about the llvm-commits mailing list