[libcxx-commits] [libcxx] [libcxxabi] [libc++][libc++abi] Merge the operator new implementations into a shared file (PR #213427)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Tue Aug 4 06:14:41 PDT 2026


================
@@ -0,0 +1,210 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include <cstddef>
+#include <cstdlib>
+#include <new>
+
+#include "include/aligned_alloc.h"
+#include "include/overridable_function.h"
+
+void __throw_bad_alloc_shim();
----------------
ldionne wrote:

Let's add a comment explaining why those two shims exist.

https://github.com/llvm/llvm-project/pull/213427


More information about the libcxx-commits mailing list