[libcxx-commits] [libcxx] 6976255 - Add noreturn attribute to non-returning functions

Aditya Kumar via libcxx-commits libcxx-commits at lists.llvm.org
Wed Mar 10 14:35:57 PST 2021


Author: Aditya Kumar
Date: 2021-03-10T14:35:50-08:00
New Revision: 6976255faffb03da3f6689f3be5fbe4361c30dfb

URL: https://github.com/llvm/llvm-project/commit/6976255faffb03da3f6689f3be5fbe4361c30dfb
DIFF: https://github.com/llvm/llvm-project/commit/6976255faffb03da3f6689f3be5fbe4361c30dfb.diff

LOG: Add noreturn attribute to non-returning functions

Differential Revision: https://reviews.llvm.org/D97308

Added: 
    

Modified: 
    libcxx/include/__split_buffer

Removed: 
    


################################################################################
diff  --git a/libcxx/include/__split_buffer b/libcxx/include/__split_buffer
index 20480d19d31b..ed8dc8bc1bd8 100644
--- a/libcxx/include/__split_buffer
+++ b/libcxx/include/__split_buffer
@@ -20,8 +20,8 @@ template <bool>
 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> >


        


More information about the libcxx-commits mailing list