]> granicus.if.org Git - clang/commit
Don't kill the declarations if the translation unit doesn't own them
authorEli Friedman <eli.friedman@gmail.com>
Wed, 21 May 2008 05:01:55 +0000 (05:01 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Wed, 21 May 2008 05:01:55 +0000 (05:01 +0000)
commit1108e7dec6d998b3945a93cb6f549e349cabf258
treea193d07c287ff64d6b2854191eadad5776996401
parent97c0a391138d20e1066174a9cfa92860fb06e5a1
Don't kill the declarations if the translation unit doesn't own them
(specifically, for TranslationUnits created from SerializationTest.cpp).
Fixes a double-free bug in the serialization tests.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51362 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/TranslationUnit.cpp