]> granicus.if.org Git - clang/commit
Don't generate any code for an explicit call to a trivial destructor.
authorDouglas Gregor <dgregor@apple.com>
Fri, 4 Sep 2009 19:04:08 +0000 (19:04 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 4 Sep 2009 19:04:08 +0000 (19:04 +0000)
commit4fe95f99a2693f1145785ea5835ba6937e49c730
tree0ee110356234d08d51bd2a76ded824e7043da003
parentf79079565e15e6a328372076ac5583af16c8dbce
Don't generate any code for an explicit call to a trivial destructor.

Now that parsing, semantic analysis, and (I think) code generation of
pseudo-destructor expressions and explicit destructor calls works,
update the example-dynarray.cpp test to destroy the objects it
allocates and update the test to actually compile + link.
The code seems correct, but the Clang-compiled version dies with a
malloc error. Time to debug!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81025 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGCXX.cpp
lib/CodeGen/CodeGenModule.cpp
lib/Sema/SemaDeclCXX.cpp
test/SemaTemplate/example-dynarray.cpp
www/cxx_status.html