Skip to content

Commit 692344d

Browse files
brooksdavisMaskRay
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
1 parent 8ac6284 commit 692344d

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)