address comments in: https://reviews.llvm.org/D22363
authorEtienne Bergeron <etienneb@google.com>
Thu, 14 Jul 2016 22:18:21 +0000 (22:18 +0000)
committerEtienne Bergeron <etienneb@google.com>
Thu, 14 Jul 2016 22:18:21 +0000 (22:18 +0000)
llvm-svn: 275492

compiler-rt/lib/asan/asan_interceptors.cc

index 79a6e9c..518ceeb 100644 (file)
@@ -585,12 +585,7 @@ INTERCEPTOR(char*, __strdup, const char *s) {
 INTERCEPTOR(SIZE_T, wcslen, const wchar_t *s) {
   void *ctx;
   ASAN_INTERCEPTOR_ENTER(ctx, wcslen);
-#if SANITIZER_WINDOWS64
-  // The function is incorrectly hooked on windows 64-bit.
   SIZE_T length = internal_wcslen(s);
-#else
-  SIZE_T length = REAL(wcslen)(s);
-#endif
   if (!asan_init_is_running) {
     ENSURE_ASAN_INITED();
     ASAN_READ_RANGE(ctx, s, (length + 1) * sizeof(wchar_t));