[libcxx-commits] [libcxx] [libc++] Fix exception_fallback.ipp not compiling (PR #212961)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Thu Jul 30 01:57:37 PDT 2026


https://github.com/philnik777 created https://github.com/llvm/llvm-project/pull/212961

None

>From d28b7262f1bd63061155a72c240d4070c428c64f Mon Sep 17 00:00:00 2001
From: Nikolas Klauser <nikolasklauser at berlin.de>
Date: Thu, 30 Jul 2026 10:57:18 +0200
Subject: [PATCH] [libc++] Fix exception_fallback.ipp not compiling

---
 libcxx/src/exception.cpp                          | 1 -
 libcxx/src/support/runtime/exception_fallback.ipp | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/libcxx/src/exception.cpp b/libcxx/src/exception.cpp
index 9932141006591..0c67e6a95922c 100644
--- a/libcxx/src/exception.cpp
+++ b/libcxx/src/exception.cpp
@@ -24,7 +24,6 @@
 #  include "support/runtime/exception_glibcxx.ipp"
 #  include "support/runtime/exception_pointer_glibcxx.ipp"
 #else
-#  include "include/atomic_support.h"
 #  include "support/runtime/exception_fallback.ipp"
 #  include "support/runtime/exception_pointer_unimplemented.ipp"
 #endif
diff --git a/libcxx/src/support/runtime/exception_fallback.ipp b/libcxx/src/support/runtime/exception_fallback.ipp
index dca904e902da1..1aab7e04fbe04 100644
--- a/libcxx/src/support/runtime/exception_fallback.ipp
+++ b/libcxx/src/support/runtime/exception_fallback.ipp
@@ -9,6 +9,7 @@
 
 #include <__verbose_abort>
 #include <exception>
+#include <new>
 #include "include/atomic_support.h"
 
 namespace std {



More information about the libcxx-commits mailing list