mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 05:06:06 +00:00
[libc++] Fix ODR violation with __exception_guard in mixed exceptions builds
This fix was proposed in https://reviews.llvm.org/D133661#4095018
This commit is contained in:
parent
95668c0d97
commit
561105fb9d
@ -89,7 +89,7 @@ private:
|
||||
};
|
||||
#else // _LIBCPP_NO_EXCEPTIONS
|
||||
template <class _Rollback>
|
||||
struct __exception_guard {
|
||||
struct [[gnu::abi_tag("-fno-exceptions")]] __exception_guard {
|
||||
__exception_guard() = delete;
|
||||
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_NODEBUG explicit __exception_guard(_Rollback) {}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user