Index: clang/lib/Lex/Preprocessor.cpp =================================================================== --- clang/lib/Lex/Preprocessor.cpp +++ clang/lib/Lex/Preprocessor.cpp @@ -1000,7 +1000,7 @@ while (1) { Token tok; Lex(tok); - if (tok.is(tok::eof)) + if (tok.isOneOf(tok::eof, tok::annot_repl_input_end)) break; toks.push_back(tok); }