[cfe-commits] r109447 - /cfe/trunk/tools/c-index-test/c-index-test.c

Dan Gohman gohman at apple.com
Mon Jul 26 14:44:15 PDT 2010


Author: djg
Date: Mon Jul 26 16:44:15 2010
New Revision: 109447

URL: http://llvm.org/viewvc/llvm-project?rev=109447&view=rev
Log:
Fix an apparent bug.

Modified:
    cfe/trunk/tools/c-index-test/c-index-test.c

Modified: cfe/trunk/tools/c-index-test/c-index-test.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/c-index-test/c-index-test.c?rev=109447&r1=109446&r2=109447&view=diff
==============================================================================
--- cfe/trunk/tools/c-index-test/c-index-test.c (original)
+++ cfe/trunk/tools/c-index-test/c-index-test.c Mon Jul 26 16:44:15 2010
@@ -48,7 +48,7 @@
                                       CXTranslationUnit *TU) {
 
   *TU = clang_createTranslationUnit(Idx, file);
-  if (!TU) {
+  if (!*TU) {
     fprintf(stderr, "Unable to load translation unit from '%s'!\n", file);
     return 0;
   }





More information about the cfe-commits mailing list