Fix inverted preprocessor guard, and fix the resulting compiler error that was unmasked.

llvm-svn: 84555
This commit is contained in:
Ted Kremenek 2009-10-19 22:27:32 +00:00
parent 5a5a3bc5d4
commit e28968828b
1 changed files with 5 additions and 5 deletions

View File

@ -384,11 +384,11 @@ CXTranslationUnit clang_createTranslationUnitFromSourceFile(
argv.push_back(NULL); argv.push_back(NULL);
// Generate the AST file in a separate process. // Generate the AST file in a separate process.
#ifdef LLVM_ON_WIN32 #ifndef LLVM_ON_WIN32
llvm::sys::Path DevNull("/dev/null") llvm::sys::Path DevNull("/dev/null");
llvm::sys::Path *Redirects[] = { &DevNull, &DevNull, &DevNull, NULL }; const llvm::sys::Path *Redirects[] = { &DevNull, &DevNull, &DevNull, NULL };
llvm::sys::Program::ExecuteAndWait(ClangPath, &argv[0], llvm::sys::Program::ExecuteAndWait(ClangPath, &argv[0], NULL,
!displayDiagnostics ? Redirects : NULL); !displayDiagnostics ? &Redirects[0] :NULL);
#else #else
// FIXME: I don't know what is the equivalent '/dev/null' redirect for // FIXME: I don't know what is the equivalent '/dev/null' redirect for
// Windows for this API. // Windows for this API.