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;


_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to