[compiler-rt] r195832 - tsan: minor refactoring
Dmitry Vyukov
dvyukov at google.com
Wed Nov 27 01:59:11 PST 2013
Author: dvyukov
Date: Wed Nov 27 03:59:11 2013
New Revision: 195832
URL: http://llvm.org/viewvc/llvm-project?rev=195832&view=rev
Log:
tsan: minor refactoring
use common helper macro
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_linux.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_linux.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_linux.cc?rev=195832&r1=195831&r2=195832&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_linux.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_linux.cc Wed Nov 27 03:59:11 2013
@@ -70,7 +70,7 @@ COMPILER_CHECK(struct_kernel_stat_sz ==
COMPILER_CHECK(struct_kernel_stat64_sz == sizeof(struct stat64));
#endif
-COMPILER_CHECK(sizeof(__sanitizer_io_event) == sizeof(struct io_event));
+CHECK_TYPE_SIZE(io_event);
CHECK_SIZE_AND_OFFSET(io_event, data);
CHECK_SIZE_AND_OFFSET(io_event, obj);
CHECK_SIZE_AND_OFFSET(io_event, res);
@@ -85,6 +85,8 @@ CHECK_SIZE_AND_OFFSET(perf_event_attr, s
COMPILER_CHECK(iocb_cmd_pread == IOCB_CMD_PREAD);
COMPILER_CHECK(iocb_cmd_pwrite == IOCB_CMD_PWRITE);
+COMPILER_CHECK(iocb_cmd_preadv == IOCB_CMD_PREADV);
+COMPILER_CHECK(iocb_cmd_pwritev == IOCB_CMD_PWRITEV);
CHECK_TYPE_SIZE(iocb);
CHECK_SIZE_AND_OFFSET(iocb, aio_data);
More information about the llvm-commits
mailing list