[llvm-commits] [compiler-rt] r158201 - /compiler-rt/trunk/lib/asan/asan_interceptors.cc
Alexey Samsonov
samsonov at google.com
Fri Jun 8 07:04:04 PDT 2012
Author: samsonov
Date: Fri Jun 8 09:04:04 2012
New Revision: 158201
URL: http://llvm.org/viewvc/llvm-project?rev=158201&view=rev
Log:
[ASan] allow calls to memmove during rtl initialization
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=158201&r1=158200&r2=158201&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_interceptors.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_interceptors.cc Fri Jun 8 09:04:04 2012
@@ -439,6 +439,9 @@
}
INTERCEPTOR(void*, memmove, void *to, const void *from, uptr size) {
+ if (asan_init_is_running) {
+ return REAL(memmove)(to, from, size);
+ }
ENSURE_ASAN_INITED();
if (FLAG_replace_intrin) {
ASAN_WRITE_RANGE(from, size);
More information about the llvm-commits
mailing list