mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-24 14:33:40 +00:00
Provide operator delete for BumpPtrAllocator and RecyclingAllocator. They will
never be called but msvc complains that they're missing. llvm-svn: 100766
This commit is contained in:
parent
79979079e9
commit
63b5d569d1
@ -236,4 +236,6 @@ inline void *operator new(size_t Size, llvm::BumpPtrAllocator &Allocator) {
|
||||
offsetof(S, x)));
|
||||
}
|
||||
|
||||
inline void operator delete(void *, llvm::BumpPtrAllocator &) {}
|
||||
|
||||
#endif // LLVM_SUPPORT_ALLOCATOR_H
|
||||
|
@ -63,4 +63,11 @@ inline void *operator new(size_t,
|
||||
return Allocator.Allocate();
|
||||
}
|
||||
|
||||
template<class AllocatorType, class T, size_t Size, size_t Align>
|
||||
inline void operator delete(void *E,
|
||||
llvm::RecyclingAllocator<AllocatorType,
|
||||
T, Size, Align> &A) {
|
||||
A.Deallocate(E);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user