[libcxx-commits] [PATCH] D108389: [libc++] Bypass calling exception-throwing functions in the dylib with -fno-exceptions

Mark de Wever via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu Aug 19 11:20:30 PDT 2021


Mordante accepted this revision as: Mordante.
Mordante added a comment.

LGTM, provided the build passes.



================
Comment at: libcxx/include/string:1723
+        __basic_string_common<true>::__throw_length_error();
+#endif
+    }
----------------
Other places that directly throw and exception use a style like
```
#ifndef _LIBCPP_NO_EXCEPTIONS
        throw bad_variant_access();
#else
        _VSTD::abort();
#endif
```
Maybe use the same pattern here for consistency? 


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D108389/new/

https://reviews.llvm.org/D108389



More information about the libcxx-commits mailing list