[compiler-rt] r297918 - [asan] trying to fix the windows build

Kostya Serebryany via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 15 16:53:13 PDT 2017


Author: kcc
Date: Wed Mar 15 18:53:12 2017
New Revision: 297918

URL: http://llvm.org/viewvc/llvm-project?rev=297918&view=rev
Log:
[asan] trying to fix the windows build

Modified:
    compiler-rt/trunk/lib/asan/asan_memory_profile.cc

Modified: compiler-rt/trunk/lib/asan/asan_memory_profile.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_memory_profile.cc?rev=297918&r1=297917&r2=297918&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_memory_profile.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_memory_profile.cc Wed Mar 15 18:53:12 2017
@@ -111,15 +111,17 @@ static void MemoryProfileCB(const Suspen
 
 }  // namespace __asan
 
+#endif  // CAN_SANITIZE_LEAKS
+
 extern "C" {
 SANITIZER_INTERFACE_ATTRIBUTE
 void __sanitizer_print_memory_profile(uptr top_percent,
                                       uptr max_number_of_contexts) {
+#if CAN_SANITIZE_LEAKS
   uptr Arg[2];
   Arg[0] = top_percent;
   Arg[1] = max_number_of_contexts;
   __sanitizer::StopTheWorld(__asan::MemoryProfileCB, Arg);
+#endif  // CAN_SANITIZE_LEAKS
 }
 }  // extern "C"
-
-#endif  // CAN_SANITIZE_LEAKS




More information about the llvm-commits mailing list