Replaced 'bool .* = 0;' with '... = false;'
llvm-svn: 182868
This commit is contained in:
		
							parent
							
								
									4213c39e3c
								
							
						
					
					
						commit
						013da5cb37
					
				| 
						 | 
					@ -246,7 +246,7 @@ INTERCEPTOR(void, __cxa_throw, void *a, void *b, void *c) {
 | 
				
			||||||
// Since asan maps 16T of RAM, mlock is completely unfriendly to asan.
 | 
					// Since asan maps 16T of RAM, mlock is completely unfriendly to asan.
 | 
				
			||||||
// All functions return 0 (success).
 | 
					// All functions return 0 (success).
 | 
				
			||||||
static void MlockIsUnsupported() {
 | 
					static void MlockIsUnsupported() {
 | 
				
			||||||
  static bool printed = 0;
 | 
					  static bool printed = false;
 | 
				
			||||||
  if (printed) return;
 | 
					  if (printed) return;
 | 
				
			||||||
  printed = true;
 | 
					  printed = true;
 | 
				
			||||||
  Printf("INFO: AddressSanitizer ignores mlock/mlockall/munlock/munlockall\n");
 | 
					  Printf("INFO: AddressSanitizer ignores mlock/mlockall/munlock/munlockall\n");
 | 
				
			||||||
| 
						 | 
					@ -673,7 +673,7 @@ INTERCEPTOR_WINAPI(DWORD, CreateThread,
 | 
				
			||||||
  u32 current_tid = GetCurrentTidOrInvalid();
 | 
					  u32 current_tid = GetCurrentTidOrInvalid();
 | 
				
			||||||
  AsanThread *t = AsanThread::Create(start_routine, arg);
 | 
					  AsanThread *t = AsanThread::Create(start_routine, arg);
 | 
				
			||||||
  CreateThreadContextArgs args = { t, &stack };
 | 
					  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);
 | 
					  asanThreadRegistry().CreateThread(*(uptr*)t, detached, current_tid, &args);
 | 
				
			||||||
  return REAL(CreateThread)(security, stack_size,
 | 
					  return REAL(CreateThread)(security, stack_size,
 | 
				
			||||||
                            asan_thread_start, t, flags, tid);
 | 
					                            asan_thread_start, t, flags, tid);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue