aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/CodeMetrics.cpp
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2014-10-15 17:08:33 +0000
committerReid Kleckner <reid@kleckner.net>2014-10-15 17:08:33 +0000
commit001fe64333f184251ea72aba8b3b8144e2a2b9df (patch)
tree391de84dfaa5949a547d46c32d325d59642948f7 /llvm/lib/Analysis/CodeMetrics.cpp
parent4e0854f23c9b084c4fbfd02e304c28c292588f1a (diff)
downloadllvm-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