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/CGCXXABI.h | |
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/CGCXXABI.h')
-rw-r--r-- | clang/lib/CodeGen/CGCXXABI.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CGCXXABI.h b/clang/lib/CodeGen/CGCXXABI.h index 73ad93f6524..ea308f0ba4e 100644 --- a/clang/lib/CodeGen/CGCXXABI.h +++ b/clang/lib/CodeGen/CGCXXABI.h @@ -258,10 +258,12 @@ public: } /// Perform ABI-specific "this" argument adjustment required prior to - /// a virtual function call. - virtual llvm::Value *adjustThisArgumentForVirtualCall(CodeGenFunction &CGF, - GlobalDecl GD, - llvm::Value *This) { + /// a call of a virtual function. + /// The "VirtualCall" argument is true iff the call itself is virtual. + virtual llvm::Value * + adjustThisArgumentForVirtualFunctionCall(CodeGenFunction &CGF, GlobalDecl GD, + llvm::Value *This, + bool VirtualCall) { return This; } |