diff options
author | Reid Kleckner <reid@kleckner.net> | 2014-10-15 17:08:33 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2014-10-15 17:08:33 +0000 |
commit | 001fe64333f184251ea72aba8b3b8144e2a2b9df (patch) | |
tree | 391de84dfaa5949a547d46c32d325d59642948f7 /llvm/lib/Analysis/CodeMetrics.cpp | |
parent | 4e0854f23c9b084c4fbfd02e304c28c292588f1a (diff) | |
download | llvm-001fe64333f184251ea72aba8b3b8144e2a2b9df.zip llvm-001fe64333f184251ea72aba8b3b8144e2a2b9df.tar.gz llvm-001fe64333f184251ea72aba8b3b8144e2a2b9df.tar.bz2 |
Fix late template parsing leak with incremental processing
Add a second late template parser callback meant to cleanup any
resources allocated by late template parsing. Call it from the
Sema::ActOnEndOfTranslationUnit method after all pending template
instantiations have been completed. Teach Parser::ParseTopLevelDecl to
install the cleanup callback when incremental processing is enabled so
that Parser::TemplateIds can be freed.
Patch by Brad King!
llvm-svn: 219810
Diffstat (limited to 'llvm/lib/Analysis/CodeMetrics.cpp')
0 files changed, 0 insertions, 0 deletions