]> granicus.if.org Git - clang/commit
Add a special BuildVirtualCall that's going to be used for building calls to destruct...
authorAnders Carlsson <andersca@mac.com>
Fri, 13 Nov 2009 04:45:41 +0000 (04:45 +0000)
committerAnders Carlsson <andersca@mac.com>
Fri, 13 Nov 2009 04:45:41 +0000 (04:45 +0000)
commit566abee1e9828a7700b51e4d17ea08234fde3bb4
treec92f80b56e260884fbbf1cb43a57fe80853051b7
parent03d8ed439f55b692634f9c71721ecfabbe347c4d
Add a special BuildVirtualCall that's going to be used for building calls to destructors. This is needed because when compiling:

struct A {
virtual ~A();
};

void f(A* a) {
delete a;
}

A's deleting destructor should be called.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@87083 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGCXX.cpp
lib/CodeGen/CGCXXExpr.cpp
lib/CodeGen/CodeGenFunction.h