CIndex: fix typo.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84422 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/CIndex/CIndex.cpp b/tools/CIndex/CIndex.cpp
index af2b417..bb50d18 100644
--- a/tools/CIndex/CIndex.cpp
+++ b/tools/CIndex/CIndex.cpp
@@ -370,7 +370,7 @@
// Generate a temporary name for the AST file.
char astTmpFile[L_tmpnam];
argv.push_back(tmpnam(astTmpFile));
- for (int i = num_command_line_args; i < num_command_line_args; i++)
+ for (int i = 0; i < num_command_line_args; i++)
argv.push_back(command_line_args[i]);
argv.push_back(NULL);