Increment arg_count inside the loop in printInline. Patch by Joe Matarazzo.

llvm-svn: 187477
This commit is contained in:
Craig Topper 2013-07-31 03:22:07 +00:00
parent efd67d4612
commit 62cb2bc837
1 changed files with 1 additions and 1 deletions

View File

@ -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);