diff options
author | Anders Carlsson <andersca@mac.com> | 2009-12-24 19:08:58 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-12-24 19:08:58 +0000 |
commit | 31777a2540879051a3c643b90e02c3fd3d315243 (patch) | |
tree | 0243ab951ccd6f6c72277b0d5759d332ea6cdb6e /lib/CodeGen/CGCXX.cpp | |
parent | 5132655e4296b780672e9a96b46a740135073534 (diff) |
Add a ReturnValueSlot class. Change the argument order in EmitCall to match the other overload better.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92136 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGCXX.cpp')
-rw-r--r-- | lib/CodeGen/CGCXX.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/CodeGen/CGCXX.cpp b/lib/CodeGen/CGCXX.cpp index edc899eb57..5b13ff831a 100644 --- a/lib/CodeGen/CGCXX.cpp +++ b/lib/CodeGen/CGCXX.cpp @@ -88,9 +88,8 @@ RValue CodeGenFunction::EmitCXXMemberCallExpr(const CXXMemberCallExpr *CE) { if (MD->isStatic()) { // The method is static, emit it as we would a regular call. llvm::Value *Callee = CGM.GetAddrOfFunction(MD); - return EmitCall(Callee, getContext().getPointerType(MD->getType()), - CE->arg_begin(), CE->arg_end(), 0); - + return EmitCall(getContext().getPointerType(MD->getType()), Callee, + CE->arg_begin(), CE->arg_end()); } const FunctionProtoType *FPT = MD->getType()->getAs<FunctionProtoType>(); |