summaryrefslogtreecommitdiff
path: root/libcxx/src
diff options
context:
space:
mode:
authorMark de Wever <koraq@xs4all.nl>2022-08-25 17:37:02 +0200
committerMark de Wever <koraq@xs4all.nl>2022-08-31 19:13:19 +0200
commit308a5b1a32f0ff795cbe4115bec447c56c77617a (patch)
tree7978df38d654617530ca501be0c8548c03a5103c /libcxx/src
parent1830302b3f8cd44f0dd4d91b55d3c7f65eb453b1 (diff)
downloadllvm-308a5b1a32f0ff795cbe4115bec447c56c77617a.tar.gz
[libc++] Inlines format_error for clang-cl DLL.
This version is build without support for the experimental library but the code still wants to link this function. Inlining the function solves the issue. Reviewed By: ldionne, #libc Differential Revision: https://reviews.llvm.org/D132667
Diffstat (limited to 'libcxx/src')
-rw-r--r--libcxx/src/format.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libcxx/src/format.cpp b/libcxx/src/format.cpp
index cdbcbf8b058d..401cccf17210 100644
--- a/libcxx/src/format.cpp
+++ b/libcxx/src/format.cpp
@@ -10,6 +10,8 @@
_LIBCPP_BEGIN_NAMESPACE_STD
+#ifndef _LIBCPP_INLINE_FORMAT_ERROR_DTOR
format_error::~format_error() noexcept = default;
+#endif
_LIBCPP_END_NAMESPACE_STD