From: Dan Gohman Date: Mon, 26 Jul 2010 21:44:15 +0000 (+0000) Subject: Fix an apparent bug. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6be2a22979e6a4af575af32cccdf6a6190a8edca;p=clang Fix an apparent bug. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109447 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/c-index-test/c-index-test.c b/tools/c-index-test/c-index-test.c index fc24bac7d0..b8d4cb8917 100644 --- a/tools/c-index-test/c-index-test.c +++ b/tools/c-index-test/c-index-test.c @@ -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; }