From: Argyrios Kyrtzidis Date: Sun, 14 Feb 2016 07:08:31 +0000 (+0000) Subject: [c-index-test] Fix a gcc build error. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8b4af6486399b7078afc8ce46f3899bae33c4dc2;p=clang [c-index-test] Fix a gcc build error. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@260844 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/c-index-test/core_main.cpp b/tools/c-index-test/core_main.cpp index 00fbd0c2da..ce37b56256 100644 --- a/tools/c-index-test/core_main.cpp +++ b/tools/c-index-test/core_main.cpp @@ -172,7 +172,7 @@ int indextest_core_main(int argc, const char **argv) { PrettyStackTraceProgram X(argc, argv); std::vector 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(DoubleDash + 1, argv + argc); argc = DoubleDash - argv;