aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark de Wever <koraq@xs4all.nl>2024-04-03 17:36:00 +0200
committerGitHub <noreply@github.com>2024-04-03 17:36:00 +0200
commita77d3d9a2e5decc814119dc4e0a7b4625a6f6490 (patch)
tree13ebac9e0b55a01b3e8bc34240822058f2afc7ba
parent4d8a3f5b35b01f8223d2e4c0e63d91cd00e9b1a5 (diff)
downloadllvm-a77d3d9a2e5decc814119dc4e0a7b4625a6f6490.zip
llvm-a77d3d9a2e5decc814119dc4e0a7b4625a6f6490.tar.gz
llvm-a77d3d9a2e5decc814119dc4e0a7b4625a6f6490.tar.bz2
[libc++] Disables -Wweak-vtables diagnostics. (#85577)
This is a preparation to use Clang HEAD in the CI.
-rw-r--r--libcxx/include/__expected/bad_expected_access.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libcxx/include/__expected/bad_expected_access.h b/libcxx/include/__expected/bad_expected_access.h
index 27f01d9..585b4ec 100644
--- a/libcxx/include/__expected/bad_expected_access.h
+++ b/libcxx/include/__expected/bad_expected_access.h
@@ -27,6 +27,8 @@ _LIBCPP_BEGIN_NAMESPACE_STD
template <class _Err>
class bad_expected_access;
+_LIBCPP_DIAGNOSTIC_PUSH
+_LIBCPP_CLANG_DIAGNOSTIC_IGNORED("-Wweak-vtables")
template <>
class bad_expected_access<void> : public exception {
protected:
@@ -44,6 +46,7 @@ public:
// it adds deployment target restrictions.
_LIBCPP_HIDE_FROM_ABI_VIRTUAL const char* what() const noexcept override { return "bad access to std::expected"; }
};
+_LIBCPP_DIAGNOSTIC_POP
template <class _Err>
class bad_expected_access : public bad_expected_access<void> {