]> granicus.if.org Git - clang/commitdiff
In tooling, reenable freeing of datastructures in codegen, just as we do for
authorNick Lewycky <nicholas@mxc.ca>
Tue, 25 Jun 2013 17:01:21 +0000 (17:01 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Tue, 25 Jun 2013 17:01:21 +0000 (17:01 +0000)
the frontend. We don't want to respect the -disable-free flag here.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184861 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Tooling/Tooling.cpp

index 4f3edf323f0958db18ea01df357544ef0c489076..afe7fc8903eca571901354deb9defdc28ac37934 100644 (file)
@@ -95,6 +95,7 @@ static clang::CompilerInvocation *newInvocation(
       *Invocation, CC1Args.data() + 1, CC1Args.data() + CC1Args.size(),
       *Diagnostics);
   Invocation->getFrontendOpts().DisableFree = false;
+  Invocation->getCodeGenOpts().DisableFree = false;
   return Invocation;
 }