[llvm-commits] [compiler-rt] r167453 - /compiler-rt/trunk/lib/tsan/rtl/tsan_defs.h
Dmitry Vyukov
dvyukov at google.com
Tue Nov 6 05:21:06 PST 2012
Author: dvyukov
Date: Tue Nov 6 07:21:06 2012
New Revision: 167453
URL: http://llvm.org/viewvc/llvm-project?rev=167453&view=rev
Log:
tsan: fix constant types
Modified:
compiler-rt/trunk/lib/tsan/rtl/tsan_defs.h
Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_defs.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_defs.h?rev=167453&r1=167452&r2=167453&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_defs.h (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_defs.h Tue Nov 6 07:21:06 2012
@@ -36,20 +36,20 @@
#ifdef TSAN_SHADOW_COUNT
# if TSAN_SHADOW_COUNT == 2 \
|| TSAN_SHADOW_COUNT == 4 || TSAN_SHADOW_COUNT == 8
-const unsigned kShadowCnt = TSAN_SHADOW_COUNT;
+const uptr kShadowCnt = TSAN_SHADOW_COUNT;
# else
# error "TSAN_SHADOW_COUNT must be one of 2,4,8"
# endif
#else
// Count of shadow values in a shadow cell.
-const unsigned kShadowCnt = 8;
+const uptr kShadowCnt = 8;
#endif
// That many user bytes are mapped onto a single shadow cell.
-const unsigned kShadowCell = 8;
+const uptr kShadowCell = 8;
// Size of a single shadow value (u64).
-const unsigned kShadowSize = 8;
+const uptr kShadowSize = 8;
#if defined(TSAN_COLLECT_STATS) && TSAN_COLLECT_STATS
const bool kCollectStats = true;
More information about the llvm-commits
mailing list