projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8abecd
)
[msan] Fix compilation on non-glibc
author
Brooks Davis
<brooks@one-eyed-alien.net>
Tue, 29 Aug 2023 04:22:29 +0000
(21:22 -0700)
committer
Tobias Hieta
<tobias@hieta.se>
Wed, 30 Aug 2023 15:00:18 +0000
(17:00 +0200)
SANITIZER_GLIBC is always defined so should be tested with an if not an
ifdef.
Fixes:
ad7e2501000d
Reviewed By: MaskRay
Differential Revision: https://reviews.llvm.org/D159041
(cherry picked from commit
692344d87357ded619d216b265a9375f4326d8fb
)
compiler-rt/lib/msan/msan_interceptors.cpp
patch
|
blob
|
history
diff --git
a/compiler-rt/lib/msan/msan_interceptors.cpp
b/compiler-rt/lib/msan/msan_interceptors.cpp
index
9cb65d5
..
ba92bd1
100644
(file)
--- a/
compiler-rt/lib/msan/msan_interceptors.cpp
+++ b/
compiler-rt/lib/msan/msan_interceptors.cpp
@@
-1767,7
+1767,7
@@
void InitializeInterceptors() {
INTERCEPT_STRTO(wcstoul);
INTERCEPT_STRTO(wcstoll);
INTERCEPT_STRTO(wcstoull);
-#if
def
SANITIZER_GLIBC
+#if SANITIZER_GLIBC
INTERCEPT_STRTO(__isoc23_strtod);
INTERCEPT_STRTO(__isoc23_strtof);
INTERCEPT_STRTO(__isoc23_strtold);