[compiler-rt] Add missing #else clause to fix the build on NetBSD.
authorFrederic Cambus <fred@statdns.com>
Sun, 19 Mar 2023 08:44:55 +0000 (09:44 +0100)
committerFrederic Cambus <fred@statdns.com>
Sun, 19 Mar 2023 08:46:45 +0000 (09:46 +0100)
An #elif SANITIZER_SOLARIS clause was removed in D120048, but it also
removed the #else clause for the error fallback, causing the build to
fail on NetBSD.

Differential Revision: https://reviews.llvm.org/D146316

compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cpp

index ec860fd..37b2b57 100644 (file)
@@ -583,6 +583,7 @@ static void GetTls(uptr *addr, uptr *size) {
       *addr = (uptr)tcb->tcb_dtv[1];
     }
   }
+#else
 #error "Unknown OS"
 #endif
 }