summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGClass.cpp
diff options
context:
space:
mode:
authorStephen Lin <stephenwlin@gmail.com>2013-06-19 18:10:35 +0000
committerStephen Lin <stephenwlin@gmail.com>2013-06-19 18:10:35 +0000
commit4444dbbb96ba55ff8a05a1918627f609a387db9f (patch)
tree1eca5e8f7492bfa88ef404cf19b68a6ad83e4608 /lib/CodeGen/CGClass.cpp
parent2d588b4bc7127adf1a1c621002dfe452a99fef6f (diff)
downloadclang-4444dbbb96ba55ff8a05a1918627f609a387db9f.tar.gz
clang-4444dbbb96ba55ff8a05a1918627f609a387db9f.tar.bz2
clang-4444dbbb96ba55ff8a05a1918627f609a387db9f.tar.xz
Corrections to r184205 ('this'-return optimization) due to the wrong version of the patch being committed originally.
1) Removed useless return value of CGCXXABI::EmitConstructorCall and CGCXXABI::EmitVirtualDestructorCall and implementations 2) Corrected last portion of CodeGenCXX/constructor-destructor-return-this to correctly test for non-'this'-return of virtual destructor calls git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184330 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGClass.cpp')
-rw-r--r--lib/CodeGen/CGClass.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/CodeGen/CGClass.cpp b/lib/CodeGen/CGClass.cpp
index ce4ead2419..cceae6873a 100644
--- a/lib/CodeGen/CGClass.cpp
+++ b/lib/CodeGen/CGClass.cpp
@@ -1662,9 +1662,8 @@ CodeGenFunction::EmitCXXConstructorCall(const CXXConstructorDecl *D,
}
// Non-trivial constructors are handled in an ABI-specific manner.
- CGM.getCXXABI().EmitConstructorCall(*this, D, Type,
- ForVirtualBase, Delegating,
- ReturnValueSlot(), This, ArgBeg, ArgEnd);
+ CGM.getCXXABI().EmitConstructorCall(*this, D, Type, ForVirtualBase,
+ Delegating, This, ArgBeg, ArgEnd);
}
void