Skip to content

Commit 6976255

Browse files
committed
Add noreturn attribute to non-returning functions
Differential Revision: https://reviews.llvm.org/D97308
1 parent be646e3 commit 6976255

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libcxx/include/__split_buffer

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ template <bool>
2020
class __split_buffer_common
2121
{
2222
protected:
23-
void __throw_length_error() const;
24-
void __throw_out_of_range() const;
23+
_LIBCPP_NORETURN void __throw_length_error() const;
24+
_LIBCPP_NORETURN void __throw_out_of_range() const;
2525
};
2626

2727
template <class _Tp, class _Allocator = allocator<_Tp> >

0 commit comments

Comments
 (0)