[compiler-rt] r221190 - [TSan] Fix signed-compare warning in the unit test

Alexey Samsonov vonosmas at gmail.com
Mon Nov 3 14:17:39 PST 2014


Author: samsonov
Date: Mon Nov  3 16:17:39 2014
New Revision: 221190

URL: http://llvm.org/viewvc/llvm-project?rev=221190&view=rev
Log:
[TSan] Fix signed-compare warning in the unit test

Modified:
    compiler-rt/trunk/lib/tsan/tests/unit/tsan_dense_alloc_test.cc

Modified: compiler-rt/trunk/lib/tsan/tests/unit/tsan_dense_alloc_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/tests/unit/tsan_dense_alloc_test.cc?rev=221190&r1=221189&r2=221190&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/tests/unit/tsan_dense_alloc_test.cc (original)
+++ compiler-rt/trunk/lib/tsan/tests/unit/tsan_dense_alloc_test.cc Mon Nov  3 16:17:39 2014
@@ -36,7 +36,7 @@ TEST(DenseSlabAlloc, Basic) {
     for (int i = 0; i < N; i++) {
       IndexT idx = alloc.Alloc(&cache);
       blocks[i] = idx;
-      EXPECT_NE(idx, 0);
+      EXPECT_NE(idx, 0U);
       int *v = alloc.Map(idx);
       *v = i;
     }





More information about the llvm-commits mailing list