[libcxx-commits] [libcxx] [libc++][NFC] Remove redundant define (PR #215883)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Aug 12 13:03:44 PDT 2026
https://github.com/ldionne created https://github.com/llvm/llvm-project/pull/215883
Since we #error immediately before, there's no point in defining the _LIBCPP_ASSERT_SHIM macro.
>From 705977a169292972171d403d6f5f8ab1c341bea7 Mon Sep 17 00:00:00 2001
From: Louis Dionne <ldionne.2 at gmail.com>
Date: Wed, 12 Aug 2026 16:02:49 -0400
Subject: [PATCH] [libc++][NFC] Remove redundant define
Since we #error immediately before, there's no point in defining
the _LIBCPP_ASSERT_SHIM macro.
---
libcxx/src/support/new.ipp | 1 -
1 file changed, 1 deletion(-)
diff --git a/libcxx/src/support/new.ipp b/libcxx/src/support/new.ipp
index 80be2d904af4c..bfc4a06b91931 100644
--- a/libcxx/src/support/new.ipp
+++ b/libcxx/src/support/new.ipp
@@ -20,7 +20,6 @@ void __throw_bad_alloc_shim();
#ifndef _LIBCPP_ASSERT_SHIM
# error _LIBCPP_ASSERT_SHIM should be defined
-# define _LIBCPP_ASSERT_SHIM
#endif
static void* operator_new_impl(std::size_t size) {
More information about the libcxx-commits
mailing list