diff options
| author | David Majnemer <david.majnemer@gmail.com> | 2014-02-20 23:22:07 +0000 |
|---|---|---|
| committer | David Majnemer <david.majnemer@gmail.com> | 2014-02-20 23:22:07 +0000 |
| commit | c1f8c88ff426b317deb83ff7c2af0a21bb640d53 (patch) | |
| tree | 72b132640140732415bbebf33aa69e5e529954df /lib/CodeGen/CGExprCXX.cpp | |
| parent | 9e1078f32e6a48b9d9e38cb640acf1f6b43642a0 (diff) | |
| download | clang-c1f8c88ff426b317deb83ff7c2af0a21bb640d53.tar.gz clang-c1f8c88ff426b317deb83ff7c2af0a21bb640d53.tar.bz2 clang-c1f8c88ff426b317deb83ff7c2af0a21bb640d53.tar.xz | |
Sema: Do not assert when dereferencing member pointer using virtual inheritance with an incomplete class type
The MS ABI requires that we determine the vbptr offset if have a
virtual inheritance model. Instead, raise an error pointing to the
diagnostic when this happens.
This fixes PR18583.
Differential Revision: http://llvm-reviews.chandlerc.com/D2842
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201824 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprCXX.cpp')
| -rw-r--r-- | lib/CodeGen/CGExprCXX.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGExprCXX.cpp b/lib/CodeGen/CGExprCXX.cpp index 1e49d4ffd3..3f07e17b6c 100644 --- a/lib/CodeGen/CGExprCXX.cpp +++ b/lib/CodeGen/CGExprCXX.cpp @@ -260,7 +260,7 @@ CodeGenFunction::EmitCXXMemberPointerCallExpr(const CXXMemberCallExpr *E, // Ask the ABI to load the callee. Note that This is modified. llvm::Value *Callee = - CGM.getCXXABI().EmitLoadOfMemberFunctionPointer(*this, This, MemFnPtr, MPT); + CGM.getCXXABI().EmitLoadOfMemberFunctionPointer(*this, BO, This, MemFnPtr, MPT); CallArgList Args; |
