From 39dc9f8be437e6fe8fce1fc34884b7279e3fd6cc Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Tue, 25 Jun 2013 17:01:21 +0000 Subject: 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. llvm-svn: 184861 --- clang/lib/Tooling/Tooling.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'clang/lib/Tooling') diff --git a/clang/lib/Tooling/Tooling.cpp b/clang/lib/Tooling/Tooling.cpp index 4f3edf323f0..afe7fc8903e 100644 --- a/clang/lib/Tooling/Tooling.cpp +++ b/clang/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; } -- cgit v1.2.3