forked from OSchip/llvm-project
Increment arg_count inside the loop in printInline. Patch by Joe Matarazzo.
llvm-svn: 187477
This commit is contained in:
parent
efd67d4612
commit
62cb2bc837
|
@ -1832,7 +1832,7 @@ void CppWriter::printInline(const std::string& fname,
|
|||
unsigned arg_count = 1;
|
||||
for (Function::const_arg_iterator AI = F->arg_begin(), AE = F->arg_end();
|
||||
AI != AE; ++AI) {
|
||||
Out << ", Value* arg_" << arg_count;
|
||||
Out << ", Value* arg_" << arg_count++;
|
||||
}
|
||||
Out << ") {";
|
||||
nl(Out);
|
||||
|
|
Loading…
Reference in New Issue