commit | 3687e9d3a5dbfa9963af02a49a2b139d91310813 | [log] [tgz] |
---|---|---|
author | Douglas Gregor <dgregor@apple.com> | Mon Apr 05 21:10:19 2010 +0000 |
committer | Douglas Gregor <dgregor@apple.com> | Mon Apr 05 21:10:19 2010 +0000 |
tree | ade3e3fa898569e289eb9dd3e4642b1724d2195e | |
parent | 4800ea6ff8017cf803c32a5fd63b94c0614014e3 [diff] |
Clarify the ownership semantics of the Diagnostic object used by ASTUnit. Previously, we would end up with use-after-free errors because the Diagnostic object would be creating in one place (say, CIndex) and its ownership would not be transferred into the ASTUnit. Fixes <rdar://problem/7818608>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100464 91177308-0d34-0410-b5e6-96231b3b80d8