[libcxx-commits] [libcxx] [libc++] Include missing <__assert> after #80091 (PR #83480)

via libcxx-commits libcxx-commits at lists.llvm.org
Thu Feb 29 13:02:13 PST 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libcxx

Author: Fangrui Song (MaskRay)

<details>
<summary>Changes</summary>

`_LIBCPP_ASSERT_SHIM` used by the -fno-exceptions
LIBCXX_ENABLE_NEW_DELETE_DEFINITIONS=on configuration needs
`_LIBCPP_ASSERT` from `<__assert>`.


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


1 Files Affected:

- (modified) libcxx/src/new.cpp (+1) 


``````````diff
diff --git a/libcxx/src/new.cpp b/libcxx/src/new.cpp
index 0869d90661dd51..b0c731678cac30 100644
--- a/libcxx/src/new.cpp
+++ b/libcxx/src/new.cpp
@@ -7,6 +7,7 @@
 //===----------------------------------------------------------------------===//
 
 #include "include/overridable_function.h"
+#include <__assert>
 #include <__memory/aligned_alloc.h>
 #include <cstddef>
 #include <cstdlib>

``````````

</details>


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


More information about the libcxx-commits mailing list