[Lldb-commits] [lldb] [lldb] Add LLDB_ASSERT_OR_RETURN macro and make use of it (PR #71175)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Fri Nov 3 10:08:26 PDT 2023


DavidSpickett wrote:

>  The idea behind the latter is that if your assertion fails, you're already in an unrecoverable state (and if it were recoverable, error handling would have taken care of that).

Sounds like these should be a hypothetical `assert_even_in_release_mode` in that case. Maybe they should be some `llvm::fatal_error...`. I remember seeing something like that around the codebase.

https://github.com/llvm/llvm-project/pull/71175


More information about the lldb-commits mailing list