summaryrefslogtreecommitdiffstats
path: root/tools/c-index-test
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2017-02-23 05:51:47 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2017-02-23 05:51:47 +0000
commitb8bfb64f1c0a3dbf5b59145097db2d718a0d41f6 (patch)
treef0b0ec33c001b7cedbd836e34b96bb351ff533f6 /tools/c-index-test
parentee4fecad433df890feadf8b3a6dae422dfe4b2f0 (diff)
[c-index-test] For the 'core' invocation, avoid running it under a new thread.
It's unnecessary. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@295934 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/c-index-test')
-rw-r--r--tools/c-index-test/c-index-test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/c-index-test/c-index-test.c b/tools/c-index-test/c-index-test.c
index dfb4b27bce..b6e6ded9cc 100644
--- a/tools/c-index-test/c-index-test.c
+++ b/tools/c-index-test/c-index-test.c
@@ -4452,13 +4452,13 @@ int main(int argc, const char **argv) {
LIBXML_TEST_VERSION
#endif
+ if (argc > 1 && strcmp(argv[1], "core") == 0)
+ return indextest_core_main(argc, argv);
+
client_data.main_func = cindextest_main;
client_data.argc = argc;
client_data.argv = argv;
- if (argc > 1 && strcmp(argv[1], "core") == 0)
- client_data.main_func = indextest_core_main;
-
if (getenv("CINDEXTEST_NOTHREADS"))
return client_data.main_func(client_data.argc, client_data.argv);