[ASan] Use internal_memmove() in both static and dynamic runtime libraries if asan_in...
authorAlexander Potapenko <glider@google.com>
Wed, 24 Oct 2012 09:19:16 +0000 (09:19 +0000)
committerAlexander Potapenko <glider@google.com>
Wed, 24 Oct 2012 09:19:16 +0000 (09:19 +0000)
llvm-svn: 166549

compiler-rt/lib/asan/asan_interceptors.cc

index 1fec3b6..d679863 100644 (file)
@@ -249,9 +249,7 @@ INTERCEPTOR(void*, memcpy, void *to, const void *from, uptr size) {
 }
 
 INTERCEPTOR(void*, memmove, void *to, const void *from, uptr size) {
-#if MAC_INTERPOSE_FUNCTIONS
-  if (!asan_inited) return REAL(memmove)(to, from, size);
-#endif
+  if (!asan_inited) return internal_memmove(to, from, size);
   if (asan_init_is_running) {
     return REAL(memmove)(to, from, size);
   }