mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-25 03:30:37 +00:00
DenseMap: Remove poisoning of unused memory.
DenseMap has great support for catching invalidated iterators now so we can get rid of this crude hack. Use after frees are covered by asan. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237523 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8ef9968822
commit
a0b851cb9c
@ -272,10 +272,6 @@ protected:
|
|||||||
P->getSecond().~ValueT();
|
P->getSecond().~ValueT();
|
||||||
P->getFirst().~KeyT();
|
P->getFirst().~KeyT();
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef NDEBUG
|
|
||||||
memset((void*)getBuckets(), 0x5a, sizeof(BucketT)*getNumBuckets());
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void initEmpty() {
|
void initEmpty() {
|
||||||
@ -312,12 +308,6 @@ protected:
|
|||||||
}
|
}
|
||||||
B->getFirst().~KeyT();
|
B->getFirst().~KeyT();
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef NDEBUG
|
|
||||||
if (OldBucketsBegin != OldBucketsEnd)
|
|
||||||
memset((void*)OldBucketsBegin, 0x5a,
|
|
||||||
sizeof(BucketT) * (OldBucketsEnd - OldBucketsBegin));
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename OtherBaseT>
|
template <typename OtherBaseT>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user