[compiler-rt] 8510cf9 - [compiler-rt] Add missing #else clause to fix the build on NetBSD.
Frederic Cambus via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 19 01:47:03 PDT 2023
Author: Frederic Cambus
Date: 2023-03-19T09:46:45+01:00
New Revision: 8510cf9fc1a431b70737b2b046007d318c62b7a8
URL: https://github.com/llvm/llvm-project/commit/8510cf9fc1a431b70737b2b046007d318c62b7a8
DIFF: https://github.com/llvm/llvm-project/commit/8510cf9fc1a431b70737b2b046007d318c62b7a8.diff
LOG: [compiler-rt] Add missing #else clause to fix the build on NetBSD.
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
Added:
Modified:
compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cpp
index ec860fdc4ff9d..37b2b57c0c844 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cpp
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cpp
@@ -583,6 +583,7 @@ static void GetTls(uptr *addr, uptr *size) {
*addr = (uptr)tcb->tcb_dtv[1];
}
}
+#else
#error "Unknown OS"
#endif
}
More information about the llvm-commits
mailing list