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
This commit is contained in:
Simon Pilgrim 2017-08-10 17:20:09 +00:00
parent 82056f0e2b
commit 92e2e47a06

View File

@ -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 {