Skip to content

Commit

Permalink
[msan] Fix compilation on non-glibc
Browse files Browse the repository at this point in the history
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
  • Loading branch information
brooksdavis authored and MaskRay committed Aug 29, 2023
1 parent 8ac6284 commit 692344d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler-rt/lib/msan/msan_interceptors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1767,7 +1767,7 @@ void InitializeInterceptors() {
INTERCEPT_STRTO(wcstoul);
INTERCEPT_STRTO(wcstoll);
INTERCEPT_STRTO(wcstoull);
#ifdef SANITIZER_GLIBC
#if SANITIZER_GLIBC
INTERCEPT_STRTO(__isoc23_strtod);
INTERCEPT_STRTO(__isoc23_strtof);
INTERCEPT_STRTO(__isoc23_strtold);
Expand Down

0 comments on commit 692344d

Please sign in to comment.