diff options
Diffstat (limited to 'contrib/llvm-project/lldb/source/Utility/LLDBAssert.cpp')
| -rw-r--r-- | contrib/llvm-project/lldb/source/Utility/LLDBAssert.cpp | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/llvm-project/lldb/source/Utility/LLDBAssert.cpp b/contrib/llvm-project/lldb/source/Utility/LLDBAssert.cpp index 75530d806310..361d6d04a28f 100644 --- a/contrib/llvm-project/lldb/source/Utility/LLDBAssert.cpp +++ b/contrib/llvm-project/lldb/source/Utility/LLDBAssert.cpp @@ -21,10 +21,10 @@ void lldb_private::lldb_assert(bool expression, const char *expr_text,    if (LLVM_LIKELY(expression))      return; -  // In a Debug configuration lldb_assert() behaves like assert(0). -  llvm_unreachable("lldb_assert failed"); +  // If asserts are enabled abort here. +  assert(false && "lldb_assert failed"); -  // In a Release configuration it will print a warning and encourage the user +  // In a release configuration it will print a warning and encourage the user    // to file a bug report, similar to LLVM’s crash handler, and then return    // execution.    errs() << format("Assertion failed: (%s), function %s, file %s, line %u\n",  | 
