From: Marek Sokolowski Date: Thu, 10 Aug 2017 16:46:52 +0000 (+0000) Subject: Fixup for r310621: Hint the compilers about unreachable code. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=82056f0e2b571db0d16fe6d8ffeafddb28497f33;p=llvm Fixup for r310621: Hint the compilers about unreachable code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310623 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/llvm-rc/ResourceScriptToken.cpp b/tools/llvm-rc/ResourceScriptToken.cpp index 95ff113c70c..557a343b435 100644 --- a/tools/llvm-rc/ResourceScriptToken.cpp +++ b/tools/llvm-rc/ResourceScriptToken.cpp @@ -214,6 +214,10 @@ Error Tokenizer::consumeToken(const Kind TokenKind) { case Kind::Invalid: assert(false && "Cannot consume an invalid token."); } + + // This silences the compilers which cannot notice that the execution + // never reaches here. + assert(false); } bool Tokenizer::willNowRead(StringRef FollowingChars) const {