Skip to content

Commit b6cf21f

Browse files
brooksdavistru
authored andcommitted
[msan] Fix compilation on non-glibc
SANITIZER_GLIBC is always defined so should be tested with an if not an ifdef. Fixes: ad7e250 Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D159041 (cherry picked from commit 692344d)
1 parent c8abecd commit b6cf21f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/lib/msan/msan_interceptors.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1767,7 +1767,7 @@ void InitializeInterceptors() {
17671767
INTERCEPT_STRTO(wcstoul);
17681768
INTERCEPT_STRTO(wcstoll);
17691769
INTERCEPT_STRTO(wcstoull);
1770-
#ifdef SANITIZER_GLIBC
1770+
#if SANITIZER_GLIBC
17711771
INTERCEPT_STRTO(__isoc23_strtod);
17721772
INTERCEPT_STRTO(__isoc23_strtof);
17731773
INTERCEPT_STRTO(__isoc23_strtold);

0 commit comments

Comments
 (0)