Skip to content

Commit 76cfe6c

Browse files
committed
[Parse] Always end translation unit
The check here was added back in 68090ee, but shouldn't actually be needed (it was added back in purely because it was part of the original change that joined the `-fincremental-extensions` with `IncrementalProcessing`).
1 parent 57affcf commit 76cfe6c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/lib/Parse/Parser.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -719,8 +719,7 @@ bool Parser::ParseTopLevelDecl(DeclGroupPtrTy &Result,
719719

720720
// Late template parsing can begin.
721721
Actions.SetLateTemplateParser(LateTemplateParserCallback, nullptr, this);
722-
if (!PP.isIncrementalProcessingEnabled())
723-
Actions.ActOnEndOfTranslationUnit();
722+
Actions.ActOnEndOfTranslationUnit();
724723
//else don't tell Sema that we ended parsing: more input might come.
725724
return true;
726725

0 commit comments

Comments
 (0)