From: Manuel Klimek Date: Wed, 29 Nov 2017 15:09:12 +0000 (+0000) Subject: Fix 'control reaches end of non-void' warning by using llvm_unreachable. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6a084385b6bca68541bf2d553ee954bed4ffddd6;p=clang 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 --- diff --git a/lib/Format/BreakableToken.cpp b/lib/Format/BreakableToken.cpp index db350b9a5a..a5fabfe237 100644 --- a/lib/Format/BreakableToken.cpp +++ b/lib/Format/BreakableToken.cpp @@ -195,9 +195,8 @@ unsigned BreakableStringLiteral::getRangeLength(unsigned LineIndex, unsigned Offset, StringRef::size_type Length, unsigned StartColumn) const { - assert(false && - "Getting the length of a part of the string literal indicates that " - "the code tries to reflow it."); + llvm_unreachable("Getting the length of a part of the string literal " + "indicates that the code tries to reflow it."); } unsigned