forked from OSchip/llvm-project
parent
8fea42d955
commit
f50cffce10
|
@ -336,12 +336,12 @@ void MutateStructTypes::transformMethod(Function *m) {
|
||||||
Function *NewMeth = cast<Function>(GMI->second);
|
Function *NewMeth = cast<Function>(GMI->second);
|
||||||
|
|
||||||
// Okay, first order of business, create the arguments...
|
// Okay, first order of business, create the arguments...
|
||||||
for (unsigned i = 0; i < M->getArgumentList().size(); ++i) {
|
for (unsigned i = 0, e = M->getArgumentList().size(); i != e; ++i) {
|
||||||
const FunctionArgument *OMA = M->getArgumentList()[i];
|
const FunctionArgument *OFA = M->getArgumentList()[i];
|
||||||
FunctionArgument *NMA = new FunctionArgument(ConvertType(OMA->getType()),
|
FunctionArgument *NFA = new FunctionArgument(ConvertType(OFA->getType()),
|
||||||
OMA->getName());
|
OFA->getName());
|
||||||
NewMeth->getArgumentList().push_back(NMA);
|
NewMeth->getArgumentList().push_back(NFA);
|
||||||
LocalValueMap[OMA] = NMA; // Keep track of value mapping
|
LocalValueMap[OFA] = NFA; // Keep track of value mapping
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue