forked from OSchip/llvm-project
Fixup for r310621: Hint the compilers about unreachable code.
llvm-svn: 310623
This commit is contained in:
parent
7a85cc52d7
commit
d0c5bfa233
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue