[ASan] allow calls to memmove during rtl initialization

llvm-svn: 158201
This commit is contained in:
Alexey Samsonov 2012-06-08 14:04:04 +00:00
parent 6cfc34ea7f
commit 99d58521c5
1 changed files with 3 additions and 0 deletions

View File

@ -439,6 +439,9 @@ INTERCEPTOR(void*, memcpy, void *to, const void *from, uptr size) {
}
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);