[libcxx-commits] [libcxx] [libc++][NFC] Remove redundant define (PR #215883)

via libcxx-commits libcxx-commits at lists.llvm.org
Wed Aug 12 13:04:26 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libcxx

Author: Louis Dionne (ldionne)

<details>
<summary>Changes</summary>

Since we #error immediately before, there's no point in defining the _LIBCPP_ASSERT_SHIM macro.

---
Full diff: https://github.com/llvm/llvm-project/pull/215883.diff


1 Files Affected:

- (modified) libcxx/src/support/new.ipp (-1) 


``````````diff
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) {

``````````

</details>


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


More information about the libcxx-commits mailing list