From: Nick Lewycky Date: Tue, 25 Jun 2013 17:01:21 +0000 (+0000) Subject: In tooling, reenable freeing of datastructures in codegen, just as we do for X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fe7ed9ec307ed6bcb962b6780bf3a156420662b3;p=clang In tooling, reenable freeing of datastructures in codegen, just as we do for 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 --- diff --git a/lib/Tooling/Tooling.cpp b/lib/Tooling/Tooling.cpp index 4f3edf323f..afe7fc8903 100644 --- a/lib/Tooling/Tooling.cpp +++ b/lib/Tooling/Tooling.cpp @@ -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; }