Go to file
Nico Weber 824285ec53 Let ASTReader optionally delete its ASTDeserializationListener.
Use this to fix the leak of DeserializedDeclsDumper and DeserializedDeclsChecker
in FrontendAction (found by LSan), PR19560.

The "delete this" bool is necessary because both PCHGenerator and ASTUnit
return the same object from both getDeserializationListener() and
getASTMutationListener(), so ASTReader can't just have a unique_ptr.

It's also not possible to just let FrontendAction (or CompilerInstance) own
these listeners due to lifetime issues (see comments on PR19560).

Finally, ASTDeserializationListener can't easily be refcounted, since several of
the current listeners are allocated on the stack.

Having this bool isn't ideal, but it's a pattern that's used in other places in
the codebase too, and it seems better than leaking.

llvm-svn: 208277
2014-05-08 04:26:47 +00:00
clang Let ASTReader optionally delete its ASTDeserializationListener. 2014-05-08 04:26:47 +00:00
clang-tools-extra Print stats on displayed and ignored warnings. 2014-05-07 09:06:53 +00:00
compiler-rt [DFSan] Update build rules for Makefile build 2014-05-07 23:48:59 +00:00
debuginfo-tests relax testcase for LLDB output format compatibility. 2014-03-19 23:06:18 +00:00
libclc Fix build broken by LLVM commit r207593 2014-04-30 18:35:20 +00:00
libcxx Fix PR 19663. Some calls to find(vector<bool>) were returning iterators that were subtly invalid (didn't compare equal). Thanks to Erik Verbruggen for the report (and diagnosis) 2014-05-06 15:33:23 +00:00
libcxxabi Make libc++abi use the implementation of __numstr from libc++. No functionality change, just removal of duplicated code. 2014-05-07 20:17:41 +00:00
lld Call normalize() in the common driver. 2014-05-07 23:33:48 +00:00
lldb Change ProcessElfCore::CreateInstance() to check if the ELF magic bytes 2014-05-07 23:14:04 +00:00
llvm [modules] Add missing #include. 2014-05-08 02:34:32 +00:00
openmp Add the offload directory which contains the code needed to support 2014-04-09 15:40:23 +00:00
polly unxfail passing testcase 2014-05-07 18:01:32 +00:00