From 32791937d7aceb0a5e1eaabf1bb1a6dbe1639792 Mon Sep 17 00:00:00 2001 From: Julian Lettner Date: Tue, 30 Jun 2020 13:19:25 -0700 Subject: [PATCH] [Sanitizer] Remove obsolete assert for OS version checking on Darwin macOS versions do not necessarily start with 10 anymore. Remove an obsolete assert. --- compiler-rt/lib/sanitizer_common/sanitizer_mac.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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(u16 ten, u16 major) : VersionBase(ten, major) { - CHECK_EQ(ten, 10); - } + MacosVersion(u16 major, u16 minor) : VersionBase(major, minor) {} }; struct DarwinKernelVersion : VersionBase {