We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2b7dd20 + 415b6d1 commit e489944Copy full SHA for e489944
lib/Sema/TypeChecker.cpp
@@ -56,7 +56,7 @@ TypeChecker &TypeChecker::createForContext(ASTContext &ctx) {
56
"Cannot install more than one instance of the global type checker!");
57
auto *TC = new TypeChecker(ctx);
58
ctx.installGlobalTypeChecker(TC);
59
- ctx.addDestructorCleanup(TC);
+ ctx.addCleanup([=](){ delete TC; });
60
return *ctx.getLegacyGlobalTypeChecker();
61
}
62
0 commit comments