aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGClass.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2011-02-03 19:27:17 +0000
committerFariborz Jahanian <fjahanian@apple.com>2011-02-03 19:27:17 +0000
commit771c678c04f5f685b4f188ec6c2fd88ad0f7457f (patch)
tree47fb0d7c66c424f3442613ffc708a2ecee9e2094 /lib/CodeGen/CGClass.cpp
parent799ef666685d6c97d64d1970a6f68bf7923360c2 (diff)
Clean up of -fapple-kext abi code. No change otherwise.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124807 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGClass.cpp')
-rw-r--r--lib/CodeGen/CGClass.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/CGClass.cpp b/lib/CodeGen/CGClass.cpp
index 905e168150..ac2a5445a4 100644
--- a/lib/CodeGen/CGClass.cpp
+++ b/lib/CodeGen/CGClass.cpp
@@ -1270,7 +1270,8 @@ void CodeGenFunction::EmitCXXDestructorCall(const CXXDestructorDecl *DD,
ForVirtualBase);
llvm::Value *Callee = 0;
if (getContext().getLangOptions().AppleKext)
- Callee = BuildAppleKextVirtualDestructorCall(DD, Type);
+ Callee = BuildAppleKextVirtualDestructorCall(DD, Type,
+ DD->getParent());
if (!Callee)
Callee = CGM.GetAddrOfCXXDestructor(DD, Type);