Test commit. Minor cleanup in AsanThread
llvm-svn: 147930
diff --git a/compiler-rt/lib/asan/asan_thread.cc b/compiler-rt/lib/asan/asan_thread.cc
index c61b2b4..0257e7a 100644
--- a/compiler-rt/lib/asan/asan_thread.cc
+++ b/compiler-rt/lib/asan/asan_thread.cc
@@ -45,9 +45,7 @@
}
void AsanThread::ClearShadowForThreadStack() {
- uintptr_t shadow_bot = MemToShadow(stack_bottom_);
- uintptr_t shadow_top = MemToShadow(stack_top_);
- real_memset((void*)shadow_bot, 0, shadow_top - shadow_bot);
+ PoisonShadow(stack_bottom_, stack_top_ - stack_bottom_, 0);
}
void AsanThread::Init() {