s/Method/Function
authorChris Lattner <sabre@nondot.org>
Fri, 29 Mar 2002 19:04:45 +0000 (19:04 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 29 Mar 2002 19:04:45 +0000 (19:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2048 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/MutateStructTypes.cpp

index dc3ef7f770b5d23502bde5f46884becbbe9b9640..641459684f1628071950a5fc8e672c69ffed6557 100644 (file)
@@ -336,12 +336,12 @@ void MutateStructTypes::transformMethod(Function *m) {
   Function *NewMeth = cast<Function>(GMI->second);
 
   // Okay, first order of business, create the arguments...
-  for (unsigned i = 0; i < M->getArgumentList().size(); ++i) {
-    const FunctionArgument *OMA = M->getArgumentList()[i];
-    FunctionArgument *NMA = new FunctionArgument(ConvertType(OMA->getType()),
-                                                 OMA->getName());
-    NewMeth->getArgumentList().push_back(NMA);
-    LocalValueMap[OMA] = NMA; // Keep track of value mapping
+  for (unsigned i = 0, e = M->getArgumentList().size(); i != e; ++i) {
+    const FunctionArgument *OFA = M->getArgumentList()[i];
+    FunctionArgument *NFA = new FunctionArgument(ConvertType(OFA->getType()),
+                                                 OFA->getName());
+    NewMeth->getArgumentList().push_back(NFA);
+    LocalValueMap[OFA] = NFA; // Keep track of value mapping
   }