[llvm-commits] [compiler-rt] r157585 - /compiler-rt/trunk/lib/tsan/output_tests/simple_stack2.cc

Dmitry Vyukov dvyukov at google.com
Mon May 28 10:33:08 PDT 2012


Author: dvyukov
Date: Mon May 28 12:33:08 2012
New Revision: 157585

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

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

Modified: compiler-rt/trunk/lib/tsan/output_tests/simple_stack2.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/output_tests/simple_stack2.cc?rev=157585&r1=157584&r2=157585&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/output_tests/simple_stack2.cc (original)
+++ compiler-rt/trunk/lib/tsan/output_tests/simple_stack2.cc Mon May 28 12:33:08 2012
@@ -9,16 +9,16 @@
 }
 
 void __attribute__((noinline)) bar1() {
-  volatile int tmp = 42; (void)tmp;
+  volatile int tmp = 42; int tmp2 = tmp; (void)tmp2;
   foo1();
 }
 
 void __attribute__((noinline)) foo2() {
-  volatile int v = Global; (void)v;
+  volatile int tmp = Global; int tmp2 = tmp; (void)tmp2;
 }
 
 void __attribute__((noinline)) bar2() {
-  volatile int tmp = 42; (void)tmp;
+  volatile int tmp = 42; int tmp2 = tmp; (void)tmp2;
   foo2();
 }
 





More information about the llvm-commits mailing list