Skip to content
This repository was archived by the owner on Nov 1, 2021. It is now read-only.

Commit 6a08438

Browse files
committed
Fix 'control reaches end of non-void' warning by using llvm_unreachable.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@319318 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 6acd80a commit 6a08438

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/Format/BreakableToken.cpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,8 @@ unsigned BreakableStringLiteral::getRangeLength(unsigned LineIndex,
195195
unsigned Offset,
196196
StringRef::size_type Length,
197197
unsigned StartColumn) const {
198-
assert(false &&
199-
"Getting the length of a part of the string literal indicates that "
200-
"the code tries to reflow it.");
198+
llvm_unreachable("Getting the length of a part of the string literal "
199+
"indicates that the code tries to reflow it.");
201200
}
202201

203202
unsigned

0 commit comments

Comments
 (0)