[llvm-commits] [compiler-rt] r163608 - in /compiler-rt/trunk/lib/sanitizer_common: sanitizer_internal_defs.h scripts/check_lint.sh tests/sanitizer_stackdepot_test.cc
Alexey Samsonov
samsonov at google.com
Tue Sep 11 03:31:28 PDT 2012
Author: samsonov
Date: Tue Sep 11 05:31:28 2012
New Revision: 163608
URL: http://llvm.org/viewvc/llvm-project?rev=163608&view=rev
Log:
[Sanitizer] fix warnings reported by gcc. Update the list of targets to check lint for
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h
compiler-rt/trunk/lib/sanitizer_common/scripts/check_lint.sh
compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_stackdepot_test.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h?rev=163608&r1=163607&r2=163608&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h Tue Sep 11 05:31:28 2012
@@ -138,7 +138,7 @@
#define IMPL_PASTE(a, b) a##b
#define IMPL_COMPILER_ASSERT(pred, line) \
- typedef char IMPL_PASTE(assertion_failed_##_, line)[2*(int)(pred)-1];
+ typedef char IMPL_PASTE(assertion_failed_##_, line)[2*(int)(pred)-1]
// Limits for integral types. We have to redefine it in case we don't
// have stdint.h (like in Visual Studio 9).
Modified: compiler-rt/trunk/lib/sanitizer_common/scripts/check_lint.sh
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/scripts/check_lint.sh?rev=163608&r1=163607&r2=163608&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/scripts/check_lint.sh (original)
+++ compiler-rt/trunk/lib/sanitizer_common/scripts/check_lint.sh Tue Sep 11 05:31:28 2012
@@ -51,8 +51,7 @@
# ASan
ASAN_RTL=${COMPILER_RT}/lib/asan
${CPPLINT} --filter=${ASAN_RTL_LINT_FILTER} ${ASAN_RTL}/*.{cc,h}
-${CPPLINT} --filter=${ASAN_TEST_LINT_FILTER} ${ASAN_RTL}/tests/*.{cc,h} \
- ${ASAN_RTL}/output_tests/*.cc
+${CPPLINT} --filter=${ASAN_TEST_LINT_FILTER} ${ASAN_RTL}/tests/*.{cc,h}
${CPPLINT} --filter=${ASAN_TEST_LINT_FILTER} ${ASAN_RTL}/lit_tests/*.cc \
${ASAN_RTL}/lit_tests/*/*.cc \
Modified: compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_stackdepot_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_stackdepot_test.cc?rev=163608&r1=163607&r2=163608&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_stackdepot_test.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_stackdepot_test.cc Tue Sep 11 05:31:28 2012
@@ -24,7 +24,7 @@
const uptr *sp1 = StackDepotGet(i1, &sz1);
EXPECT_NE(sp1, (uptr*)0);
EXPECT_EQ(sz1, ARRAY_SIZE(s1));
- EXPECT_EQ(internal_memcmp(sp1?:s1, s1, sizeof(s1)), 0);
+ EXPECT_EQ(internal_memcmp(sp1, s1, sizeof(s1)), 0);
}
TEST(SanitizerCommon, StackDepotAbsent) {
@@ -55,7 +55,7 @@
const uptr *sp1 = StackDepotGet(i1, &sz1);
EXPECT_NE(sp1, (uptr*)0);
EXPECT_EQ(sz1, ARRAY_SIZE(s1));
- EXPECT_EQ(internal_memcmp(sp1?:s1, s1, sizeof(s1)), 0);
+ EXPECT_EQ(internal_memcmp(sp1, s1, sizeof(s1)), 0);
}
TEST(SanitizerCommon, StackDepotSeveral) {
More information about the llvm-commits
mailing list