]> granicus.if.org Git - clang/commit
When compiling ::delete for a class with a virtual destructor, call
authorDouglas Gregor <dgregor@apple.com>
Wed, 13 Jul 2011 00:54:47 +0000 (00:54 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 13 Jul 2011 00:54:47 +0000 (00:54 +0000)
commita8b20f70d562cdc2679f82d409832b79fc415277
treeb46595c0fbeb7c5bb3b707d6f636ab9051e09d82
parent9f8ee2ea0a62551ad5488669cf69308e7b48a9dd
When compiling ::delete for a class with a virtual destructor, call
the complete destructor and then invoke the global delete
operator. Previously, we would invoke the deleting destructor, which
calls the wrong delete operator. Fixes PR10341.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135021 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGExprCXX.cpp
test/CodeGenCXX/delete.cpp