From 9a2e623372cbdbffc0daf25427fdf72e1cdb9b51 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Tue, 23 Mar 2021 16:49:47 +0100 Subject: Cleanup: use BLI_assert_unreachable in some places --- source/blender/blenlib/BLI_virtual_array.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/blenlib/BLI_virtual_array.hh') diff --git a/source/blender/blenlib/BLI_virtual_array.hh b/source/blender/blenlib/BLI_virtual_array.hh index 0f6240bad95..f9b0aaa7de6 100644 --- a/source/blender/blenlib/BLI_virtual_array.hh +++ b/source/blender/blenlib/BLI_virtual_array.hh @@ -126,7 +126,7 @@ template class VArray { virtual Span get_span_impl() const { - BLI_assert(false); + BLI_assert_unreachable(); return {}; } @@ -139,7 +139,7 @@ template class VArray { { /* Provide a default implementation, so that subclasses don't have to provide it. This method * should never be called because `is_single_impl` returns false by default. */ - BLI_assert(false); + BLI_assert_unreachable(); return T(); } }; -- cgit v1.2.3