[compiler-rt] r179008 - [tsan] Fix build.
Evgeniy Stepanov
eugeni.stepanov at gmail.com
Mon Apr 8 01:46:25 PDT 2013
Author: eugenis
Date: Mon Apr 8 03:46:25 2013
New Revision: 179008
URL: http://llvm.org/viewvc/llvm-project?rev=179008&view=rev
Log:
[tsan] Fix build.
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_interceptors.inc
compiler-rt/trunk/lib/tsan/rtl/tsan_stat.cc
compiler-rt/trunk/lib/tsan/rtl/tsan_stat.h
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_interceptors.inc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_interceptors.inc?rev=179008&r1=179007&r2=179008&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_interceptors.inc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_interceptors.inc Mon Apr 8 03:46:25 2013
@@ -236,7 +236,7 @@ INTERCEPTOR(unsigned long, time, unsigne
void *ctx;
COMMON_INTERCEPTOR_ENTER(ctx, time, t);
unsigned long res = REAL(time)(t);
- if (res != -1) {
+ if (res != (unsigned long)-1) {
COMMON_INTERCEPTOR_WRITE_RANGE(ctx, t, sizeof(*t));
}
return res;
Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_stat.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_stat.cc?rev=179008&r1=179007&r2=179008&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_stat.cc (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_stat.cc Mon Apr 8 03:46:25 2013
@@ -296,6 +296,7 @@ void StatOutput(u64 *stat) {
name[StatInt_clock_settime] = " clock_settime ";
name[StatInt_getitimer] = " getitimer ";
name[StatInt_setitimer] = " setitimer ";
+ name[StatInt_time] = " time ";
name[StatAnnotation] = "Dynamic annotations ";
name[StatAnnotateHappensBefore] = " HappensBefore ";
Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_stat.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_stat.h?rev=179008&r1=179007&r2=179008&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_stat.h (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_stat.h Mon Apr 8 03:46:25 2013
@@ -291,6 +291,7 @@ enum StatType {
StatInt_clock_settime,
StatInt_getitimer,
StatInt_setitimer,
+ StatInt_time,
// Dynamic annotations.
StatAnnotation,
More information about the llvm-commits
mailing list