mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Increment arg_count inside the loop in printInline. Patch by Joe Matarazzo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187477 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
418eb3df74
commit
0c49a9b619
@ -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
Block a user