Fixup for r310621: Hint the compilers about unreachable code.

llvm-svn: 310623
This commit is contained in:
Marek Sokolowski 2017-08-10 16:46:52 +00:00
parent 7a85cc52d7
commit d0c5bfa233
1 changed files with 4 additions and 0 deletions

View File

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