diff options
author | Timur Iskhodzhanov <timurrrr@google.com> | 2014-03-14 17:43:37 +0000 |
---|---|---|
committer | Timur Iskhodzhanov <timurrrr@google.com> | 2014-03-14 17:43:37 +0000 |
commit | f1749427c59e6a93046cf84106e28569019a471a (patch) | |
tree | 698f3aef04745d58fb90176b3d94e9409eedee88 /clang/lib/CodeGen/ItaniumCXXABI.cpp | |
parent | 0a8f5ec2552aae4cfe05de109f726cbc5748d9ed (diff) | |
download | bcm5719-llvm-f1749427c59e6a93046cf84106e28569019a471a.tar.gz bcm5719-llvm-f1749427c59e6a93046cf84106e28569019a471a.zip |
Fix PR19104: Incorrect handling of non-virtual calls of virtual methods
Reviewed at http://llvm-reviews.chandlerc.com/D3054
llvm-svn: 203949
Diffstat (limited to 'clang/lib/CodeGen/ItaniumCXXABI.cpp')
-rw-r--r-- | clang/lib/CodeGen/ItaniumCXXABI.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/ItaniumCXXABI.cpp b/clang/lib/CodeGen/ItaniumCXXABI.cpp index f6e9d9d7681..7390a2113b5 100644 --- a/clang/lib/CodeGen/ItaniumCXXABI.cpp +++ b/clang/lib/CodeGen/ItaniumCXXABI.cpp @@ -934,9 +934,6 @@ void ItaniumCXXABI::EmitDestructorCall(CodeGenFunction &CGF, if (!Callee) Callee = CGM.GetAddrOfCXXDestructor(DD, Type); - if (DD->isVirtual()) - This = adjustThisArgumentForVirtualCall(CGF, GD, This); - // FIXME: Provide a source location here. CGF.EmitCXXMemberCall(DD, SourceLocation(), Callee, ReturnValueSlot(), This, VTT, VTTTy, 0, 0); |