Skip to content

Commit b967677

Browse files
committed
[libSyntax] Partly revert #18698 to fix ASAN bot
1 parent bc3189a commit b967677

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

lib/Parse/Parser.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,13 +1016,6 @@ struct ParserUnit::Implementation {
10161016
Opts.CollectParsedToken,
10171017
Opts.BuildSyntaxTree)) {
10181018
}
1019-
1020-
~Implementation() {
1021-
// We need to delete the parser before the context so that it can finalize
1022-
// its SourceFileSyntax while it is still alive
1023-
TheParser.reset();
1024-
delete &Ctx;
1025-
}
10261019
};
10271020

10281021
ParserUnit::ParserUnit(SourceManager &SM, unsigned BufferID)

0 commit comments

Comments
 (0)