forked from OSchip/llvm-project
Fix bug in `AsanAllocatorASVT` (ASan) and `AllocatorASVT` (LSan) templated alias.
We forgot to pass `AddressSpaceView` to the `CombinedAllocator` which meant we would always use `LocalAddressSpaceView` for the `CombinedAllocator` leading to a static_assert failing when we tried to do `AsanAllocatorASVT<RemoteAddressSpaceView>` or `AllocatorASVT<RemoteAddressSpaceView>`. rdar://problem/45284065 llvm-svn: 351689
This commit is contained in:
parent
4fd2459c4d
commit
0e83f5dff1
|
@ -204,7 +204,8 @@ template <typename AddressSpaceView>
|
|||
using AsanAllocatorASVT =
|
||||
CombinedAllocator<PrimaryAllocatorASVT<AddressSpaceView>,
|
||||
AllocatorCacheASVT<AddressSpaceView>,
|
||||
SecondaryAllocatorASVT<AddressSpaceView>>;
|
||||
SecondaryAllocatorASVT<AddressSpaceView>,
|
||||
AddressSpaceView>;
|
||||
using AsanAllocator = AsanAllocatorASVT<LocalAddressSpaceView>;
|
||||
|
||||
struct AsanThreadLocalMallocStorage {
|
||||
|
|
|
@ -110,7 +110,8 @@ template <typename AddressSpaceView>
|
|||
using AllocatorASVT =
|
||||
CombinedAllocator<PrimaryAllocatorASVT<AddressSpaceView>,
|
||||
AllocatorCacheASVT<AddressSpaceView>,
|
||||
SecondaryAllocatorASVT<AddressSpaceView>>;
|
||||
SecondaryAllocatorASVT<AddressSpaceView>,
|
||||
AddressSpaceView>;
|
||||
using Allocator = AllocatorASVT<LocalAddressSpaceView>;
|
||||
|
||||
AllocatorCache *GetAllocatorCache();
|
||||
|
|
Loading…
Reference in New Issue