diff --git a/clang/lib/Lex/Preprocessor.cpp b/clang/lib/Lex/Preprocessor.cpp --- a/clang/lib/Lex/Preprocessor.cpp +++ b/clang/lib/Lex/Preprocessor.cpp @@ -1002,7 +1002,8 @@ while (1) { Token Tok; Lex(Tok); - if (Tok.isOneOf(tok::unknown, tok::eof, tok::eod)) + if (Tok.isOneOf(tok::unknown, tok::eof, tok::eod, + tok::annot_repl_input_end)) break; if (Tokens != nullptr) Tokens->push_back(Tok);