summaryrefslogtreecommitdiffstats
path: root/lldb/source/Utility/LLDBAssert.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-07-05 21:54:20 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2019-07-05 21:54:20 +0000
commitabd1561f15ee466c0fd9abeede2cdcde2ebb2cec (patch)
tree2ab0265a18cf40d32edda4b7aaf8d7dafe33e7c6 /lldb/source/Utility/LLDBAssert.cpp
parent096600a4b073dd94a366cc8e57bff93c34ff6966 (diff)
downloadbcm5719-llvm-abd1561f15ee466c0fd9abeede2cdcde2ebb2cec.tar.gz
bcm5719-llvm-abd1561f15ee466c0fd9abeede2cdcde2ebb2cec.zip
[LLDBAssert] Use unreachable instead of assert(0)
As per Davide's suggestion offline. llvm-svn: 365250
Diffstat (limited to 'lldb/source/Utility/LLDBAssert.cpp')
-rw-r--r--lldb/source/Utility/LLDBAssert.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Utility/LLDBAssert.cpp b/lldb/source/Utility/LLDBAssert.cpp
index 28cd584b555..75530d80631 100644
--- a/lldb/source/Utility/LLDBAssert.cpp
+++ b/lldb/source/Utility/LLDBAssert.cpp
@@ -21,8 +21,8 @@ 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().
- assert(false && "lldb_assert failed");
+ // In a Debug configuration lldb_assert() behaves like assert(0).
+ llvm_unreachable("lldb_assert failed");
// 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
OpenPOWER on IntegriCloud