[llvm-commits] [compiler-rt] r154006 - /compiler-rt/trunk/lib/asan/asan_interceptors.cc

Alexey Samsonov samsonov at google.com
Wed Apr 4 04:36:47 PDT 2012

Author: samsonov
Date: Wed Apr  4 06:36:47 2012
New Revision: 154006

URL: http://llvm.org/viewvc/llvm-project?rev=154006&view=rev
[ASan] use correct C-version of strchr on Windows


Modified: compiler-rt/trunk/lib/asan/asan_interceptors.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_interceptors.cc?rev=154006&r1=154005&r2=154006&view=diff
--- compiler-rt/trunk/lib/asan/asan_interceptors.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_interceptors.cc Wed Apr  4 06:36:47 2012
@@ -67,11 +67,9 @@
 void* memmove(void *to, const void *from, size_t size);
 void* memcpy(void *to, const void *from, size_t size);
 void* memset(void *block, int c, size_t size);
-# if defined(__APPLE__)
 char* strchr(const char *str, int c);
+# if defined(__APPLE__)
 char* index(const char *string, int c);
-# elif defined(_WIN32)
-char* strchr(const char *s, char c);
 # endif
 char* strcat(char *to, const char* from);  // NOLINT
 char* strcpy(char *to, const char* from);  // NOLINT

More information about the llvm-commits mailing list