summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExprCXX.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2011-01-28 23:42:29 +0000
committerFariborz Jahanian <fjahanian@apple.com>2011-01-28 23:42:29 +0000
commita50e33eb0ff7b73d44aebce88de3732583a7e960 (patch)
tree24cf4825a3d316cacc20462de14338d9470fd88c /lib/CodeGen/CGExprCXX.cpp
parent28dadd6c88e0b93b1b99edd460548625359786b7 (diff)
downloadclang-a50e33eb0ff7b73d44aebce88de3732583a7e960.tar.gz
clang-a50e33eb0ff7b73d44aebce88de3732583a7e960.tar.bz2
clang-a50e33eb0ff7b73d44aebce88de3732583a7e960.tar.xz
More work to support -fapple-kext regarding
indirect vf calls and addition of extra entry at bottom of vtbls. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124507 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprCXX.cpp')
-rw-r--r--lib/CodeGen/CGExprCXX.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/CGExprCXX.cpp b/lib/CodeGen/CGExprCXX.cpp
index 513d80be0b..03b90e2587 100644
--- a/lib/CodeGen/CGExprCXX.cpp
+++ b/lib/CodeGen/CGExprCXX.cpp
@@ -195,6 +195,7 @@ RValue CodeGenFunction::EmitCXXMemberCallExpr(const CXXMemberCallExpr *CE,
Callee = BuildVirtualCall(MD, This, Ty);
} else {
if (getContext().getLangOptions().AppleKext &&
+ MD->isVirtual() &&
ME->hasQualifier())
Callee = BuildAppleKextVirtualCall(MD, ME->getQualifier(), This, Ty);
else