From fe7ed9ec307ed6bcb962b6780bf3a156420662b3 Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Tue, 25 Jun 2013 17:01:21 +0000 Subject: [PATCH] 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 --- lib/Tooling/Tooling.cpp | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.40.0