summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-rc/ResourceScriptToken.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/llvm-rc/ResourceScriptToken.cpp')
-rw-r--r--llvm/tools/llvm-rc/ResourceScriptToken.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/tools/llvm-rc/ResourceScriptToken.cpp b/llvm/tools/llvm-rc/ResourceScriptToken.cpp
index 95ff113c70c..557a343b435 100644
--- a/llvm/tools/llvm-rc/ResourceScriptToken.cpp
+++ b/llvm/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 {
OpenPOWER on IntegriCloud