[compiler-rt] r182868 - Replaced 'bool .* = 0;' with '... = false;'

Timur Iskhodzhanov timurrrr at google.com
Wed May 29 10:26:25 PDT 2013


Author: timurrrr
Date: Wed May 29 12:26:25 2013
New Revision: 182868

URL: http://llvm.org/viewvc/llvm-project?rev=182868&view=rev
Log:
Replaced 'bool .* = 0;' with '... = false;'

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=182868&r1=182867&r2=182868&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_interceptors.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_interceptors.cc Wed May 29 12:26:25 2013
@@ -246,7 +246,7 @@ INTERCEPTOR(void, __cxa_throw, void *a,
 // Since asan maps 16T of RAM, mlock is completely unfriendly to asan.
 // All functions return 0 (success).
 static void MlockIsUnsupported() {
-  static bool printed = 0;
+  static bool printed = false;
   if (printed) return;
   printed = true;
   Printf("INFO: AddressSanitizer ignores mlock/mlockall/munlock/munlockall\n");
@@ -673,7 +673,7 @@ INTERCEPTOR_WINAPI(DWORD, CreateThread,
   u32 current_tid = GetCurrentTidOrInvalid();
   AsanThread *t = AsanThread::Create(start_routine, arg);
   CreateThreadContextArgs args = { t, &stack };
-  bool detached = 0;  // FIXME: how can we determine it on Windows?
+  bool detached = false;  // FIXME: how can we determine it on Windows?
   asanThreadRegistry().CreateThread(*(uptr*)t, detached, current_tid, &args);
   return REAL(CreateThread)(security, stack_size,
                             asan_thread_start, t, flags, tid);





More information about the llvm-commits mailing list