]> granicus.if.org Git - clang/commitdiff
CIndex: fix typo.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sun, 18 Oct 2009 16:52:07 +0000 (16:52 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sun, 18 Oct 2009 16:52:07 +0000 (16:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84422 91177308-0d34-0410-b5e6-96231b3b80d8

tools/CIndex/CIndex.cpp

index af2b417ab8b684e6fc6b2ec0d0b4196533562729..bb50d1810498d3106ceb48a4e1d3aa28dc2b21f0 100644 (file)
@@ -370,7 +370,7 @@ CXTranslationUnit clang_createTranslationUnitFromSourceFile(
   // 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);