[llvm-commits] [compiler-rt] r162980 - /compiler-rt/trunk/lib/tsan/output_tests/race_on_heap.cc

Alexey Samsonov samsonov at google.com
Fri Aug 31 01:00:37 PDT 2012


Author: samsonov
Date: Fri Aug 31 03:00:37 2012
New Revision: 162980

URL: http://llvm.org/viewvc/llvm-project?rev=162980&view=rev
Log:
[TSan] Fix style warinings in output test

Modified:
    compiler-rt/trunk/lib/tsan/output_tests/race_on_heap.cc

Modified: compiler-rt/trunk/lib/tsan/output_tests/race_on_heap.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/output_tests/race_on_heap.cc?rev=162980&r1=162979&r2=162980&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/output_tests/race_on_heap.cc (original)
+++ compiler-rt/trunk/lib/tsan/output_tests/race_on_heap.cc Fri Aug 31 03:00:37 2012
@@ -8,7 +8,7 @@
 }
 
 void *Thread2(void *p) {
-  *(int*)p = 44;;
+  *(int*)p = 44;
   return 0;
 }
 
@@ -16,7 +16,7 @@
   return malloc(99);
 }
 
-void *AllocThread(void*) {
+void *AllocThread(void* arg) {
   return alloc();
 }
 
@@ -35,12 +35,11 @@
 
 // CHECK: addr=[[ADDR:0x[0-9,a-f]+]]
 // CHECK: WARNING: ThreadSanitizer: data race
-//...
+// ...
 // CHECK:   Location is heap block of size 99 at [[ADDR]] allocated by thread 1:
 // CHECK:     #0 alloc
 // CHECK:     #1 AllocThread
-//...
+// ...
 // CHECK:   Thread 1 (finished) created at:
 // CHECK:     #0 pthread_create
 // CHECK:     #1 main
-





More information about the llvm-commits mailing list