Revert "[libc++] Fix ODR violation with __exception_guard in mixed exceptions builds"
authorNikolas Klauser <nikolasklauser@berlin.de>
Wed, 1 Feb 2023 15:05:18 +0000 (16:05 +0100)
committerNikolas Klauser <nikolasklauser@berlin.de>
Wed, 1 Feb 2023 15:05:18 +0000 (16:05 +0100)
This reverts commit 561105fb9d3a16f7fb8c718cc5da71b11f17a144.

This breaks C++03 with -fno-exceptions.

libcxx/include/__utility/exception_guard.h

index ccbf75f..737d1a6 100644 (file)
@@ -89,7 +89,7 @@ private:
 };
 #else  // _LIBCPP_NO_EXCEPTIONS
 template <class _Rollback>
-struct [[gnu::abi_tag("-fno-exceptions")]] __exception_guard {
+struct __exception_guard {
   __exception_guard() = delete;
   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_NODEBUG explicit __exception_guard(_Rollback) {}