]> granicus.if.org Git - clang/commit
Clarify the ownership semantics of the Diagnostic object used by
authorDouglas Gregor <dgregor@apple.com>
Mon, 5 Apr 2010 21:10:19 +0000 (21:10 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 5 Apr 2010 21:10:19 +0000 (21:10 +0000)
commit3687e9d3a5dbfa9963af02a49a2b139d91310813
treeade3e3fa898569e289eb9dd3e4642b1724d2195e
parent4800ea6ff8017cf803c32a5fd63b94c0614014e3
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
include/clang/Frontend/ASTUnit.h
lib/Frontend/ASTMerge.cpp
lib/Frontend/ASTUnit.cpp
lib/Frontend/FrontendAction.cpp
tools/CIndex/CIndex.cpp