summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/CppBackend/CPPBackend.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2013-07-31 03:22:07 +0000
committerCraig Topper <craig.topper@gmail.com>2013-07-31 03:22:07 +0000
commit62cb2bc8376b03da4a2c8ebb53822946c24e97d7 (patch)
tree423b55a015d28cfbb6895fd073171891ce47ccb0 /llvm/lib/Target/CppBackend/CPPBackend.cpp
parentefd67d4612385c8154c3b159cb61794035d492fc (diff)
downloadbcm5719-llvm-62cb2bc8376b03da4a2c8ebb53822946c24e97d7.tar.gz
bcm5719-llvm-62cb2bc8376b03da4a2c8ebb53822946c24e97d7.zip
Increment arg_count inside the loop in printInline. Patch by Joe Matarazzo.
llvm-svn: 187477
Diffstat (limited to 'llvm/lib/Target/CppBackend/CPPBackend.cpp')
-rw-r--r--llvm/lib/Target/CppBackend/CPPBackend.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/CppBackend/CPPBackend.cpp b/llvm/lib/Target/CppBackend/CPPBackend.cpp
index 3e69098edcc..0ddcad2bbb8 100644
--- a/llvm/lib/Target/CppBackend/CPPBackend.cpp
+++ b/llvm/lib/Target/CppBackend/CPPBackend.cpp
@@ -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);
OpenPOWER on IntegriCloud