summaryrefslogtreecommitdiff
path: root/tools/llvm-rc
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2017-08-10 17:20:09 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2017-08-10 17:20:09 +0000
commit92e2e47a06b528727debdf2e7a7e7707eaa1f1cc (patch)
tree7e257ca231315a45a77650c90e205a23efe77d83 /tools/llvm-rc
parent82056f0e2b571db0d16fe6d8ffeafddb28497f33 (diff)
Fix 'not all control paths return' warning on windows builds. NFCI.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310631 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-rc')
-rw-r--r--tools/llvm-rc/ResourceScriptToken.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/llvm-rc/ResourceScriptToken.cpp b/tools/llvm-rc/ResourceScriptToken.cpp
index 557a343b435..ab46509b394 100644
--- a/tools/llvm-rc/ResourceScriptToken.cpp
+++ b/tools/llvm-rc/ResourceScriptToken.cpp
@@ -215,9 +215,7 @@ Error Tokenizer::consumeToken(const Kind TokenKind) {
assert(false && "Cannot consume an invalid token.");
}
- // This silences the compilers which cannot notice that the execution
- // never reaches here.
- assert(false);
+ llvm_unreachable("Unknown RCToken::Kind");
}
bool Tokenizer::willNowRead(StringRef FollowingChars) const {