From: Alexey Samsonov Date: Mon, 2 Feb 2015 20:37:26 +0000 (+0000) Subject: [Sanitizer] Fix checking for weak function presence. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1ad375d034b50526f5b4282b325d619a795bfdbc;p=platform%2Fupstream%2Fllvm.git [Sanitizer] Fix checking for weak function presence. llvm-svn: 227851 --- diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc b/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc index 4568953..df42c36 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc @@ -59,7 +59,7 @@ real_pthread_attr_getstack(void *attr, void **addr, size_t *size); static int my_pthread_attr_getstack(void *attr, void **addr, size_t *size) { #if !SANITIZER_GO - if (real_pthread_attr_getstack) + if (&real_pthread_attr_getstack) return real_pthread_attr_getstack((pthread_attr_t *)attr, addr, size); #endif return pthread_attr_getstack((pthread_attr_t *)attr, addr, size); @@ -70,7 +70,7 @@ real_sigaction(int signum, const void *act, void *oldact); int internal_sigaction(int signum, const void *act, void *oldact) { #if !SANITIZER_GO - if (real_sigaction) + if (&real_sigaction) return real_sigaction(signum, act, oldact); #endif return sigaction(signum, (const struct sigaction *)act,