Author: klimek Date: Wed Nov 29 07:09:12 2017 New Revision: 319318 URL: http://llvm.org/viewvc/llvm-project?rev=319318&view=rev Log: Fix 'control reaches end of non-void' warning by using llvm_unreachable.
Modified: cfe/trunk/lib/Format/BreakableToken.cpp Modified: cfe/trunk/lib/Format/BreakableToken.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Format/BreakableToken.cpp?rev=319318&r1=319317&r2=319318&view=diff ============================================================================== --- cfe/trunk/lib/Format/BreakableToken.cpp (original) +++ cfe/trunk/lib/Format/BreakableToken.cpp Wed Nov 29 07:09:12 2017 @@ -195,9 +195,8 @@ unsigned BreakableStringLiteral::getRang 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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits