[compiler-rt] 3279193 - [Sanitizer] Remove obsolete assert for OS version checking on Darwin
Julian Lettner via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 30 13:36:17 PDT 2020
Author: Julian Lettner
Date: 2020-06-30T13:36:10-07:00
New Revision: 32791937d7aceb0a5e1eaabf1bb1a6dbe1639792
URL: https://github.com/llvm/llvm-project/commit/32791937d7aceb0a5e1eaabf1bb1a6dbe1639792
DIFF: https://github.com/llvm/llvm-project/commit/32791937d7aceb0a5e1eaabf1bb1a6dbe1639792.diff
LOG: [Sanitizer] Remove obsolete assert for OS version checking on Darwin
macOS versions do not necessarily start with 10 anymore. Remove an
obsolete assert.
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 922307a9b977..90ecff4815c2 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_mac.h
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_mac.h
@@ -47,9 +47,7 @@ struct VersionBase {
};
struct MacosVersion : VersionBase<MacosVersion> {
- MacosVersion(u16 ten, u16 major) : VersionBase(ten, major) {
- CHECK_EQ(ten, 10);
- }
+ MacosVersion(u16 major, u16 minor) : VersionBase(major, minor) {}
};
struct DarwinKernelVersion : VersionBase<DarwinKernelVersion> {
More information about the llvm-commits
mailing list