forked from OSchip/llvm-project
BuildVirtualCall doesn't need to take a reference to a pointer.
llvm-svn: 120252
This commit is contained in:
parent
e8ba473ed2
commit
3378d870d2
|
@ -308,7 +308,7 @@ CodeGenFunction::BuildVirtualCall(const CXXMethodDecl *MD, llvm::Value *This,
|
|||
|
||||
llvm::Value *
|
||||
CodeGenFunction::BuildVirtualCall(const CXXDestructorDecl *DD, CXXDtorType Type,
|
||||
llvm::Value *&This, const llvm::Type *Ty) {
|
||||
llvm::Value *This, const llvm::Type *Ty) {
|
||||
DD = cast<CXXDestructorDecl>(DD->getCanonicalDecl());
|
||||
uint64_t VTableIndex =
|
||||
CGM.getVTables().getMethodVTableIndex(GlobalDecl(DD, Type));
|
||||
|
|
|
@ -1498,7 +1498,7 @@ public:
|
|||
llvm::Value *BuildVirtualCall(const CXXMethodDecl *MD, llvm::Value *This,
|
||||
const llvm::Type *Ty);
|
||||
llvm::Value *BuildVirtualCall(const CXXDestructorDecl *DD, CXXDtorType Type,
|
||||
llvm::Value *&This, const llvm::Type *Ty);
|
||||
llvm::Value *This, const llvm::Type *Ty);
|
||||
|
||||
RValue EmitCXXMemberCall(const CXXMethodDecl *MD,
|
||||
llvm::Value *Callee,
|
||||
|
|
Loading…
Reference in New Issue