c-index-test: Pass appropriate client data.

llvm-svn: 96317
This commit is contained in:
Daniel Dunbar 2010-02-16 01:55:10 +00:00
parent 1951192213
commit ce79bc9c7a
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ static void PrintExtent(FILE *out, unsigned begin_line, unsigned begin_column,
static unsigned CreateTranslationUnit(CXIndex Idx, const char *file, static unsigned CreateTranslationUnit(CXIndex Idx, const char *file,
CXTranslationUnit *TU) { CXTranslationUnit *TU) {
*TU = clang_createTranslationUnit(Idx, file, PrintDiagnosticCallback, 0); *TU = clang_createTranslationUnit(Idx, file, PrintDiagnosticCallback, stderr);
if (!TU) { if (!TU) {
fprintf(stderr, "Unable to load translation unit from '%s'!\n", file); fprintf(stderr, "Unable to load translation unit from '%s'!\n", file);
return 0; return 0;