Skip to content

Commit 68a7196

Browse files
authored
[NFC][AST] Clean up XRayFilter and NoSanitizeL before backend (#162119)
I don't think we need them after AST is destroyed. If I am wrong we should see crashes immediately, as pointers de-referenced unchecked.
1 parent 255db37 commit 68a7196

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang/lib/AST/ASTContext.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -906,6 +906,9 @@ void ASTContext::cleanup() {
906906
for (const auto &Value : ModuleInitializers)
907907
Value.second->~PerModuleInitializers();
908908
ModuleInitializers.clear();
909+
910+
XRayFilter.reset();
911+
NoSanitizeL.reset();
909912
}
910913

911914
ASTContext::~ASTContext() { cleanup(); }

0 commit comments

Comments
 (0)