]> granicus.if.org Git - clang/commitdiff
perform_code_completion(): fix type declaration for TU.
authorDawn Perchik <dawn@burble.org>
Thu, 30 Sep 2010 22:26:05 +0000 (22:26 +0000)
committerDawn Perchik <dawn@burble.org>
Thu, 30 Sep 2010 22:26:05 +0000 (22:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@115224 91177308-0d34-0410-b5e6-96231b3b80d8

tools/c-index-test/c-index-test.c

index 4d4e117620830a107e210d4499c42c758b354b2d..874c73282c8a772dcaefd0f3eb16985ef2b56012 100644 (file)
@@ -980,7 +980,7 @@ int perform_code_completion(int argc, const char **argv, int timing_only) {
   struct CXUnsavedFile *unsaved_files = 0;
   int num_unsaved_files = 0;
   CXCodeCompleteResults *results = 0;
-  CXTranslationUnit *TU = 0;
+  CXTranslationUnit TU = 0;
   
   if (timing_only)
     input += strlen("-code-completion-timing=");