[Lldb-commits] [PATCH] D51601: [NFC] Use llvm_unreachable instead of lldb::assert

Dávid Bolvanský via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Sep 3 11:56:24 PDT 2018


xbolva00 created this revision.
xbolva00 added a reviewer: JDevlieghere.
Herald added a subscriber: lldb-commits.

Fixes implicit fall through warnings


Repository:
  rLLDB LLDB

https://reviews.llvm.org/D51601

Files:
  source/Host/common/Editline.cpp


Index: source/Host/common/Editline.cpp
===================================================================
--- source/Host/common/Editline.cpp
+++ source/Host/common/Editline.cpp
@@ -526,7 +526,7 @@
         break;
 
       case lldb::eConnectionStatusInterrupted:
-        lldbassert(0 && "Interrupts should have been handled above.");
+        llvm_unreachable("Interrupts should have been handled above.");
 
       case lldb::eConnectionStatusError:        // Check GetError() for details
       case lldb::eConnectionStatusTimedOut:     // Request timed out


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51601.163742.patch
Type: text/x-patch
Size: 563 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20180903/19b5a337/attachment.bin>


More information about the lldb-commits mailing list