[libcxx-commits] [PATCH] D97308: Add noreturn attribute to non-returning functions

Aditya Kumar via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed Mar 10 14:36:04 PST 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rG6976255faffb: Add noreturn attribute to non-returning functions (authored by hiraditya).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D97308

Files:
  libcxx/include/__split_buffer


Index: libcxx/include/__split_buffer
===================================================================
--- libcxx/include/__split_buffer
+++ libcxx/include/__split_buffer
@@ -20,8 +20,8 @@
 class __split_buffer_common
 {
 protected:
-    void __throw_length_error() const;
-    void __throw_out_of_range() const;
+    _LIBCPP_NORETURN void __throw_length_error() const;
+    _LIBCPP_NORETURN void __throw_out_of_range() const;
 };
 
 template <class _Tp, class _Allocator = allocator<_Tp> >


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D97308.329778.patch
Type: text/x-patch
Size: 493 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210310/4c05084b/attachment.bin>


More information about the libcxx-commits mailing list