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 | e83f624f4469066aedf42dda32855d7dd45f9ed8 (patch) | |
| tree | 02e0164ae66eda68dfc3a36cef199e101edef8f7 /clang | |
| parent | 3f4bea0646444f27a99835423c6180484c09af69 (diff) | |
| download | bcm5719-llvm-e83f624f4469066aedf42dda32855d7dd45f9ed8.tar.gz bcm5719-llvm-e83f624f4469066aedf42dda32855d7dd45f9ed8.zip | |
Fix an apparent bug.
llvm-svn: 109447
Diffstat (limited to 'clang')
| -rw-r--r-- | clang/tools/c-index-test/c-index-test.c | 2 |
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 fc24bac7d03..b8d4cb89178 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; } |

