diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2009-08-10 17:20:45 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-08-10 17:20:45 +0000 |
commit | 370c884d172329384973e452647fba0b2f5146d5 (patch) | |
tree | 36e3c537787b09654e4eb61a98aa065373cf87f4 /lib/CodeGen/CGCXX.cpp | |
parent | 70121ebd65be51d67025914bd3f035515b0caf4f (diff) |
Fixed a ir-gen bug in synthesizing copy constructors.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78570 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 c16ca3661c..55693d1073 100644 --- a/lib/CodeGen/CGCXX.cpp +++ b/lib/CodeGen/CGCXX.cpp @@ -784,7 +784,7 @@ void CodeGenFunction::EmitClassMemberwiseCopy( // Push the Src ptr. CallArgs.push_back(std::make_pair(RValue::get(Src), - BaseCopyCtor->getThisType(getContext()))); + BaseCopyCtor->getParamDecl(0)->getType())); QualType ResultType = BaseCopyCtor->getType()->getAsFunctionType()->getResultType(); EmitCall(CGM.getTypes().getFunctionInfo(ResultType, CallArgs), |