1 //===-- Implementation of custom operator delete --------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
12 void operator delete(void *mem
) noexcept
{ ::free(mem
); }
14 void operator delete(void *mem
, std::align_val_t
) noexcept
{ ::free(mem
); }
16 void operator delete(void *mem
, size_t) noexcept
{ ::free(mem
); }
18 void operator delete(void *mem
, size_t, std::align_val_t
) noexcept
{
22 void operator delete[](void *mem
) noexcept
{ ::free(mem
); }
24 void operator delete[](void *mem
, std::align_val_t
) noexcept
{ ::free(mem
); }
26 void operator delete[](void *mem
, size_t) noexcept
{ ::free(mem
); }
28 void operator delete[](void *mem
, size_t, std::align_val_t
) noexcept
{