r260844 - [c-index-test] Fix a gcc build error.

Argyrios Kyrtzidis via cfe-commits cfe-commits at lists.llvm.org
Sat Feb 13 23:08:32 PST 2016


Author: akirtzidis
Date: Sun Feb 14 01:08:31 2016
New Revision: 260844

URL: http://llvm.org/viewvc/llvm-project?rev=260844&view=rev
Log:
[c-index-test] Fix a gcc build error.

Modified:
    cfe/trunk/tools/c-index-test/core_main.cpp

Modified: cfe/trunk/tools/c-index-test/core_main.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/c-index-test/core_main.cpp?rev=260844&r1=260843&r2=260844&view=diff
==============================================================================
--- cfe/trunk/tools/c-index-test/core_main.cpp (original)
+++ cfe/trunk/tools/c-index-test/core_main.cpp Sun Feb 14 01:08:31 2016
@@ -172,7 +172,7 @@ int indextest_core_main(int argc, const
   PrettyStackTraceProgram X(argc, argv);
 
   std::vector<const char *> CompArgs;
-  const char *const *DoubleDash = std::find(argv, argv + argc, StringRef("--"));
+  const char **DoubleDash = std::find(argv, argv + argc, StringRef("--"));
   if (DoubleDash != argv + argc) {
     CompArgs = std::vector<const char *>(DoubleDash + 1, argv + argc);
     argc = DoubleDash - argv;




More information about the cfe-commits mailing list