]> granicus.if.org Git - clang/commitdiff
Fix an apparent bug.
authorDan Gohman <gohman@apple.com>
Mon, 26 Jul 2010 21:44:15 +0000 (21:44 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 26 Jul 2010 21:44:15 +0000 (21:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109447 91177308-0d34-0410-b5e6-96231b3b80d8

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

index fc24bac7d0360bf49e2ca20c4ce504ecd12b5a67..b8d4cb89178e0958d2f4086e824b54713e92ad1f 100644 (file)
@@ -48,7 +48,7 @@ static unsigned CreateTranslationUnit(CXIndex Idx, const char *file,
                                       CXTranslationUnit *TU) {
 
   *TU = clang_createTranslationUnit(Idx, file);
-  if (!TU) {
+  if (!*TU) {
     fprintf(stderr, "Unable to load translation unit from '%s'!\n", file);
     return 0;
   }