diff --git a/compiler-rt/lib/tsan/rtl/tsan_ignoreset.h b/compiler-rt/lib/tsan/rtl/tsan_ignoreset.h --- a/compiler-rt/lib/tsan/rtl/tsan_ignoreset.h +++ b/compiler-rt/lib/tsan/rtl/tsan_ignoreset.h @@ -19,15 +19,14 @@ class IgnoreSet { public: - static const uptr kMaxSize = 16; - IgnoreSet(); void Add(StackID stack_id); - void Reset(); + void Reset() { size_ = 0; } uptr Size() const; StackID At(uptr i) const; private: + static constexpr uptr kMaxSize = 16; uptr size_; StackID stacks_[kMaxSize]; }; diff --git a/compiler-rt/lib/tsan/rtl/tsan_ignoreset.cpp b/compiler-rt/lib/tsan/rtl/tsan_ignoreset.cpp --- a/compiler-rt/lib/tsan/rtl/tsan_ignoreset.cpp +++ b/compiler-rt/lib/tsan/rtl/tsan_ignoreset.cpp @@ -29,10 +29,6 @@ stacks_[size_++] = stack_id; } -void IgnoreSet::Reset() { - size_ = 0; -} - uptr IgnoreSet::Size() const { return size_; }