mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
Revert r159789.
llvm-svn: 159834
This commit is contained in:
parent
5db53aa56b
commit
817a29123c
@ -239,21 +239,4 @@ inline void *operator new(size_t Size, llvm::BumpPtrAllocator &Allocator) {
|
||||
|
||||
inline void operator delete(void *, llvm::BumpPtrAllocator &) {}
|
||||
|
||||
inline void *operator new[](size_t Size, llvm::BumpPtrAllocator &Allocator) {
|
||||
struct S {
|
||||
char c;
|
||||
union {
|
||||
double D;
|
||||
long double LD;
|
||||
long long L;
|
||||
void *P;
|
||||
} x;
|
||||
};
|
||||
return Allocator.Allocate(Size, std::min((size_t)llvm::NextPowerOf2(Size),
|
||||
offsetof(S, x)));
|
||||
}
|
||||
|
||||
inline void operator delete[](void *Ptr, llvm::BumpPtrAllocator &C, size_t) {
|
||||
}
|
||||
|
||||
#endif // LLVM_SUPPORT_ALLOCATOR_H
|
||||
|
Loading…
Reference in New Issue
Block a user