diff options
author | Anders Carlsson <andersca@mac.com> | 2010-11-28 17:53:32 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2010-11-28 17:53:32 +0000 |
commit | 83eedd9fa800c273647c7a90465ea9c110f9d93c (patch) | |
tree | 6ab97c833b4cb6272ae1e592a6f5d59d9c123a2d /lib/CodeGen/CGCXX.cpp | |
parent | 1af610f8533b8b4a7b0b176aa8082f5b6dde904c (diff) |
BuildVirtualCall doesn't need to take a reference to a pointer.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120252 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGCXX.cpp')
-rw-r--r-- | lib/CodeGen/CGCXX.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGCXX.cpp b/lib/CodeGen/CGCXX.cpp index 3ff460dbf1..b734e62205 100644 --- a/lib/CodeGen/CGCXX.cpp +++ b/lib/CodeGen/CGCXX.cpp @@ -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)); |