From 623dcae1726ec3da6002055cf16ffdde27d394a4 Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Sat, 18 Apr 2009 20:29:27 +0000 Subject: [PATCH] Use EmitCallArgs in EmitObjCMessageExpr. llvm-svn: 69471 --- clang/lib/CodeGen/CGObjC.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/clang/lib/CodeGen/CGObjC.cpp b/clang/lib/CodeGen/CGObjC.cpp index 147155ea1ac6..2ac4f9c7dfd3 100644 --- a/clang/lib/CodeGen/CGObjC.cpp +++ b/clang/lib/CodeGen/CGObjC.cpp @@ -79,11 +79,8 @@ RValue CodeGenFunction::EmitObjCMessageExpr(const ObjCMessageExpr *E) { Receiver = EmitScalarExpr(E->getReceiver()); } - // FIXME: This should use EmitCallArgs. CallArgList Args; - for (CallExpr::const_arg_iterator i = E->arg_begin(), e = E->arg_end(); - i != e; ++i) - Args.push_back(std::make_pair(EmitAnyExprToTemp(*i), (*i)->getType())); + EmitCallArgs(Args, E->getMethodDecl(), E->arg_begin(), E->arg_end()); if (isSuperMessage) { // super is only valid in an Objective-C method