diff options
author | Alexey Samsonov <vonosmas@gmail.com> | 2015-10-30 18:52:31 +0000 |
---|---|---|
committer | Alexey Samsonov <vonosmas@gmail.com> | 2015-10-30 18:52:31 +0000 |
commit | 6f7eaaad0459ef493a1036872d4cc298369262d1 (patch) | |
tree | da60f7ebcf3985cad34702d8482b1ff102a97de3 /lib/sanitizer_common/sanitizer_bitvector.h | |
parent | 8f11ffecd852191e2690d132f8475ec6bbc1fdd0 (diff) |
Revert "Apply modernize-use-default to compiler-rt."
This reverts commit r250823.
Replacing at least some of empty
constructors with "= default" variants is a semantical change which we
don't want. E.g. __tsan::ClockBlock contains a union of large arrays,
and it's critical for correctness and performance that we don't memset()
these arrays in the constructor.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@251717 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_bitvector.h')
-rw-r--r-- | lib/sanitizer_common/sanitizer_bitvector.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sanitizer_common/sanitizer_bitvector.h b/lib/sanitizer_common/sanitizer_bitvector.h index ef61486bf..d8472732f 100644 --- a/lib/sanitizer_common/sanitizer_bitvector.h +++ b/lib/sanitizer_common/sanitizer_bitvector.h @@ -87,7 +87,7 @@ class BasicBitVector { // } class Iterator { public: - Iterator() = default; + Iterator() { } explicit Iterator(const BasicBitVector &bv) : bv_(bv) {} bool hasNext() const { return !bv_.empty(); } uptr next() { return bv_.getAndClearFirstOne(); } @@ -273,7 +273,7 @@ class TwoLevelBitVector { // } class Iterator { public: - Iterator() = default; + Iterator() { } explicit Iterator(const TwoLevelBitVector &bv) : bv_(bv), i0_(0), i1_(0) { it1_.clear(); it2_.clear(); |