[llvm-commits] [compiler-rt] r166549 - /compiler-rt/trunk/lib/asan/asan_interceptors.cc
Alexander Potapenko
glider at google.com
Wed Oct 24 02:19:17 PDT 2012
Author: glider
Date: Wed Oct 24 04:19:16 2012
New Revision: 166549
URL: http://llvm.org/viewvc/llvm-project?rev=166549&view=rev
Log:
[ASan] Use internal_memmove() in both static and dynamic runtime libraries if asan_inited != 0.
Modified:
compiler-rt/trunk/lib/asan/asan_interceptors.cc
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=166549&r1=166548&r2=166549&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_interceptors.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_interceptors.cc Wed Oct 24 04:19:16 2012
@@ -249,9 +249,7 @@
}
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);
}
More information about the llvm-commits
mailing list