[compiler-rt] r177251 - tsan: fix lint warnings

Dmitry Vyukov dvyukov at google.com
Mon Mar 18 00:58:20 PDT 2013


Author: dvyukov
Date: Mon Mar 18 02:58:20 2013
New Revision: 177251

URL: http://llvm.org/viewvc/llvm-project?rev=177251&view=rev
Log:
tsan: fix lint warnings

Modified:
    compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_stoptheworld_test.cc

Modified: compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_stoptheworld_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_stoptheworld_test.cc?rev=177251&r1=177250&r2=177251&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_stoptheworld_test.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_stoptheworld_test.cc Mon Mar 18 02:58:20 2013
@@ -110,8 +110,8 @@ struct AdvancedCallbackArgument {
 void *AdvancedIncrementerThread(void *argument) {
   AdvancedCallbackArgument *callback_argument =
       (AdvancedCallbackArgument *)argument;
-  uptr this_thread_index = __sync_fetch_and_add(&callback_argument->thread_index,
-                                               1);
+  uptr this_thread_index = __sync_fetch_and_add(
+      &callback_argument->thread_index, 1);
   // Spawn the next thread.
   int pthread_create_result;
   if (this_thread_index + 1 < kThreadCount) {
@@ -180,7 +180,7 @@ TEST(StopTheWorld, SuspendThreadsAdvance
   // Wait for all threads to spawn before we start terminating them.
   while (__sync_fetch_and_add(&argument.thread_index, 0) < kThreadCount)
     sched_yield();
-  ASSERT_FALSE(argument.fatal_error); // a pthread_create has failed 
+  ASSERT_FALSE(argument.fatal_error); // a pthread_create has failed
   // Signal the threads to terminate.
   pthread_mutex_unlock(&advanced_incrementer_thread_exit_mutex);
   for (uptr i = 0; i < kThreadCount; i++)





More information about the llvm-commits mailing list