Fixup for r310621: Hint the compilers about unreachable code.
llvm-svn: 310623
diff --git a/llvm/tools/llvm-rc/ResourceScriptToken.cpp b/llvm/tools/llvm-rc/ResourceScriptToken.cpp
index 95ff113..557a343 100644
--- a/llvm/tools/llvm-rc/ResourceScriptToken.cpp
+++ b/llvm/tools/llvm-rc/ResourceScriptToken.cpp
@@ -214,6 +214,10 @@
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 {