Skip to content

Commit 71dfd0d

Browse files
committed
[libSyntax] Partly revert #18698 to fix ASAN bot
1 parent 38b073e commit 71dfd0d

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
@@ -1011,13 +1011,6 @@ struct ParserUnit::Implementation {
10111011
Opts.CollectParsedToken,
10121012
Opts.BuildSyntaxTree)) {
10131013
}
1014-
1015-
~Implementation() {
1016-
// We need to delete the parser before the context so that it can finalize
1017-
// its SourceFileSyntax while it is still alive
1018-
TheParser.reset();
1019-
delete &Ctx;
1020-
}
10211014
};
10221015

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

0 commit comments

Comments
 (0)