aboutsummaryrefslogtreecommitdiff
path: root/clang/tools/c-index-test/c-index-test.c
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-07-26 21:44:15 +0000
committerDan Gohman <gohman@apple.com>2010-07-26 21:44:15 +0000
commite83f624f4469066aedf42dda32855d7dd45f9ed8 (patch)
tree02e0164ae66eda68dfc3a36cef199e101edef8f7 /clang/tools/c-index-test/c-index-test.c
parent3f4bea0646444f27a99835423c6180484c09af69 (diff)
downloadllvm-e83f624f4469066aedf42dda32855d7dd45f9ed8.zip
llvm-e83f624f4469066aedf42dda32855d7dd45f9ed8.tar.gz
llvm-e83f624f4469066aedf42dda32855d7dd45f9ed8.tar.bz2
Fix an apparent bug.
llvm-svn: 109447
Diffstat (limited to 'clang/tools/c-index-test/c-index-test.c')
-rw-r--r--clang/tools/c-index-test/c-index-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/tools/c-index-test/c-index-test.c b/clang/tools/c-index-test/c-index-test.c
index fc24bac7..b8d4cb8 100644
--- a/clang/tools/c-index-test/c-index-test.c
+++ b/clang/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;
}