Skip to content

Commit bec9a60

Browse files
fcambustru
authored andcommitted
[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 (cherry picked from commit 8510cf9)
1 parent 3c08503 commit bec9a60

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,7 @@ static void GetTls(uptr *addr, uptr *size) {
583583
*addr = (uptr)tcb->tcb_dtv[1];
584584
}
585585
}
586+
#else
586587
#error "Unknown OS"
587588
#endif
588589
}

0 commit comments

Comments
 (0)