summaryrefslogtreecommitdiffstats
path: root/clang/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
commitc467c873e63bc3ebd52ee8d4ca5e22d3111ffb50 (patch)
tree9f0e4b1671ffaaf26b4d025ccfb1465cea5d711c /clang/lib/CodeGen/CGClass.cpp
parentc0607ed68b739ac7c9a8aa415ef60010eacd838b (diff)
downloadbcm5719-llvm-c467c873e63bc3ebd52ee8d4ca5e22d3111ffb50.tar.gz
bcm5719-llvm-c467c873e63bc3ebd52ee8d4ca5e22d3111ffb50.zip
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 llvm-svn: 184330
Diffstat (limited to 'clang/lib/CodeGen/CGClass.cpp')
-rw-r--r--clang/lib/CodeGen/CGClass.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGClass.cpp b/clang/lib/CodeGen/CGClass.cpp
index ce4ead24194..cceae6873a6 100644
--- a/clang/lib/CodeGen/CGClass.cpp
+++ b/clang/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
OpenPOWER on IntegriCloud