[compiler-rt] r280976 - [powerpc] Move #if to appease warnings-as-errors tests

Bill Seurer via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 8 11:09:49 PDT 2016


Author: seurer
Date: Thu Sep  8 13:09:47 2016
New Revision: 280976

URL: http://llvm.org/viewvc/llvm-project?rev=280976&view=rev
Log:
[powerpc] Move #if to appease warnings-as-errors tests

Previous patch added a #if which causes some unused identifier warnings.


Modified:
    compiler-rt/trunk/lib/asan/tests/asan_interface_test.cc

Modified: compiler-rt/trunk/lib/asan/tests/asan_interface_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/tests/asan_interface_test.cc?rev=280976&r1=280975&r2=280976&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/tests/asan_interface_test.cc (original)
+++ compiler-rt/trunk/lib/asan/tests/asan_interface_test.cc Thu Sep  8 13:09:47 2016
@@ -100,12 +100,11 @@ TEST(AddressSanitizerInterface, GetHeapS
   }
 }
 
-static const size_t kManyThreadsMallocSizes[] = {5, 1UL<<10, 1UL<<14, 357};
-static const size_t kManyThreadsIterations = 250;
-
 #ifndef __powerpc64__
 // FIXME: This has not reliably worked on powerpc since r279664.  Re-enable
 // this once the problem is tracked down and fixed.
+static const size_t kManyThreadsMallocSizes[] = {5, 1UL<<10, 1UL<<14, 357};
+static const size_t kManyThreadsIterations = 250;
 static const size_t kManyThreadsNumThreads =
   (SANITIZER_WORDSIZE == 32) ? 40 : 200;
 




More information about the llvm-commits mailing list