[cfe-commits] r69471 - /cfe/trunk/lib/CodeGen/CGObjC.cpp

Anders Carlsson andersca at mac.com
Sat Apr 18 13:29:28 PDT 2009


Author: andersca
Date: Sat Apr 18 15:29:27 2009
New Revision: 69471

URL: http://llvm.org/viewvc/llvm-project?rev=69471&view=rev
Log:
Use EmitCallArgs in EmitObjCMessageExpr.

Modified:
    cfe/trunk/lib/CodeGen/CGObjC.cpp

Modified: cfe/trunk/lib/CodeGen/CGObjC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGObjC.cpp?rev=69471&r1=69470&r2=69471&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGObjC.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGObjC.cpp Sat Apr 18 15:29:27 2009
@@ -79,11 +79,8 @@
     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





More information about the cfe-commits mailing list