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

Aditya Kumar via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue Feb 23 11:17:42 PST 2021


hiraditya created this revision.
hiraditya requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

Repository:
  rG LLVM Github Monorepo

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.325844.patch
Type: text/x-patch
Size: 493 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210223/9e5e03a5/attachment.bin>


More information about the libcxx-commits mailing list