diff options
author | Anders Carlsson <andersca@mac.com> | 2010-05-02 23:57:15 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2010-05-02 23:57:15 +0000 |
commit | 77fae58f6dedd85c2506100e1754a2233a9c5e3a (patch) | |
tree | f88579533946bd0cebd6599d55c3a907253eaa3c /lib/CodeGen/CGClass.cpp | |
parent | c11bb2191088b9e74bec5007a4e05c78b41a8f64 (diff) |
Get rid of a call to GetAddressOfDirectBaseInCompleteClass.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102886 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGClass.cpp')
-rw-r--r-- | lib/CodeGen/CGClass.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/CodeGen/CGClass.cpp b/lib/CodeGen/CGClass.cpp index 93b1897583..634d317747 100644 --- a/lib/CodeGen/CGClass.cpp +++ b/lib/CodeGen/CGClass.cpp @@ -1020,10 +1020,13 @@ void CodeGenFunction::EmitDtorEpilogue(const CXXDestructorDecl *DD, // Ignore trivial destructors. if (BaseClassDecl->hasTrivialDestructor()) continue; - const CXXDestructorDecl *D = BaseClassDecl->getDestructor(getContext()); - - llvm::Value *V = OldGetAddressOfBaseClass(LoadCXXThis(), - ClassDecl, BaseClassDecl); + + const CXXDestructorDecl *D = BaseClassDecl->getDestructor(getContext()); + llvm::Value *V = + GetAddressOfDirectBaseInCompleteClass(LoadCXXThis(), ClassDecl, + BaseClassDecl, + /*BaseIsVirtual=*/false); + EmitCXXDestructorCall(D, Dtor_Base, /*ForVirtualBase=*/false, V); } } |