Skip to content

Commit

Permalink
Merge pull request #68 from hassansalehe/master
Browse files Browse the repository at this point in the history
Use arg_iterator instead of getArgumentList()
  • Loading branch information
simoatze authored Apr 27, 2018
2 parents 6d38d8b + f84641f commit 6f71dc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Transforms/Instrumentation/InstrumentParallel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,8 @@ bool InstrumentParallel::runOnFunction(Function &F) {
ValueToValueMapTy VMap;
Function *new_function = CloneFunction(&F, VMap);
new_function->setName(functionName + "__swordomp__");
Function::ArgumentListType::iterator it = F.getArgumentList().begin();
Function::ArgumentListType::iterator end = F.getArgumentList().end();
Function::arg_iterator it = F.arg_begin();
Function::arg_iterator end = F.arg_end();
std::vector<Value*> args;
while (it != end) {
Argument *Args = &(*it);
Expand Down

0 comments on commit 6f71dc3

Please sign in to comment.