diff options
author | Dan Gohman <gohman@apple.com> | 2010-07-26 21:44:15 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-07-26 21:44:15 +0000 |
commit | 6be2a22979e6a4af575af32cccdf6a6190a8edca (patch) | |
tree | 0fbbacf6f576f99d24f0796d3d137cacdc6c8a17 /tools/c-index-test/c-index-test.c | |
parent | f4f6c9db68465b886ec2e596feaa6ecc782395a4 (diff) |
Fix an apparent bug.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109447 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/c-index-test/c-index-test.c')
-rw-r--r-- | tools/c-index-test/c-index-test.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |