Skip to content

Commit

Permalink
[NFC] Use llvm_unreachable instead of lldb::assert
Browse files Browse the repository at this point in the history
Summary: Fixes implicit fall through warnings

Reviewers: JDevlieghere, teemperor

Reviewed By: teemperor

Subscribers: lldb-commits

Differential Revision: https://reviews.llvm.org/D51601

llvm-svn: 341339
  • Loading branch information
davidbolvansky committed Sep 3, 2018
1 parent 4d13cb0 commit 122441d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lldb/source/Host/common/Editline.cpp
Original file line number Diff line number Diff line change
@@ -526,7 +526,7 @@ int Editline::GetCharacter(EditLineGetCharType *c) {
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

0 comments on commit 122441d

Please sign in to comment.