]> granicus.if.org Git - clang/commitdiff
BuildVirtualCall doesn't need to take a reference to a pointer.
authorAnders Carlsson <andersca@mac.com>
Sun, 28 Nov 2010 17:53:32 +0000 (17:53 +0000)
committerAnders Carlsson <andersca@mac.com>
Sun, 28 Nov 2010 17:53:32 +0000 (17:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120252 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGCXX.cpp
lib/CodeGen/CodeGenFunction.h

index 3ff460dbf17688ca7f56e0fe29c68bc051101212..b734e62205cd8426971583e91e29d6667c9810d2 100644 (file)
@@ -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));
index 560675e73fd601ab726c3037947a257282793d75..4bb5c595eb6218b0c3cbb55f15bac118f8c64ded 100644 (file)
@@ -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,