diff options
Diffstat (limited to 'compiler-rt/lib/tsan/rtl/tsan_rtl.h')
| -rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_rtl.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/compiler-rt/lib/tsan/rtl/tsan_rtl.h b/compiler-rt/lib/tsan/rtl/tsan_rtl.h index a176e3f17fa..440d60ae2d5 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_rtl.h +++ b/compiler-rt/lib/tsan/rtl/tsan_rtl.h @@ -550,14 +550,12 @@ void StatOutput(u64 *stat); void ALWAYS_INLINE StatInc(ThreadState *thr, StatType typ, u64 n = 1) { #ifdef TSAN_COLLECT_STATS - if (kCollectStats) - thr->stat[typ] += n; + thr->stat[typ] += n; #endif } void ALWAYS_INLINE StatSet(ThreadState *thr, StatType typ, u64 n) { #ifdef TSAN_COLLECT_STATS - if (kCollectStats) - thr->stat[typ] = n; + thr->stat[typ] = n; #endif } |

