Remove unneeded ifdefs

This commit is contained in:
Devajith Valaparambil Sreeramaswamy 2024-04-23 17:55:39 +02:00 committed by jenkins
parent 517ba1c546
commit a943f62f14

View File

@ -918,24 +918,21 @@ namespace cling {
if (!ParseOrWrapTopLevelDecl())
return kFailed;
#ifdef _WIN32
if (PP.getLangOpts().DelayedTemplateParsing) {
// Microsoft-specific:
// Late parsed templates can leave unswallowed "macro"-like tokens.
// They will seriously confuse the Parser when entering the next
// source file. So lex until we are EOF.
Token Tok;
Tok.setKind(tok::eof);
do {
PP.Lex(Tok);
} while (Tok.isNot(tok::eof));
#endif
}
#ifndef NDEBUG
Token AssertTok;
PP.Lex(AssertTok);
assert(AssertTok.is(tok::eof) &&
"Lexer must be EOF when starting incremental parse!");
#endif
DiagnosticsEngine& Diags = getCI()->getDiagnostics();
if (m_Consumer->getTransaction()->getIssuedDiags() == Transaction::kErrors)