summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-rc/ResourceScriptToken.cpp
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
commitc3e546fe42f64e7a19379a87746d05f339bfd801 (patch)
tree95097d52234609cc99d6f1830f79c45377f9c89d /llvm/tools/llvm-rc/ResourceScriptToken.cpp
parentd61c2a18cb98607bf2897b6a5ed23164d9d1cb32 (diff)
downloadbcm5719-llvm-c3e546fe42f64e7a19379a87746d05f339bfd801.tar.gz
bcm5719-llvm-c3e546fe42f64e7a19379a87746d05f339bfd801.zip
Fix 'not all control paths return' warning on windows builds. NFCI.
llvm-svn: 310631
Diffstat (limited to 'llvm/tools/llvm-rc/ResourceScriptToken.cpp')
-rw-r--r--llvm/tools/llvm-rc/ResourceScriptToken.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/tools/llvm-rc/ResourceScriptToken.cpp b/llvm/tools/llvm-rc/ResourceScriptToken.cpp
index 557a343b435..ab46509b394 100644
--- a/llvm/tools/llvm-rc/ResourceScriptToken.cpp
+++ b/llvm/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 {
OpenPOWER on IntegriCloud