[cfe-commits] r84555 - /cfe/trunk/tools/CIndex/CIndex.cpp
Ted Kremenek
kremenek at apple.com
Mon Oct 19 15:27:32 PDT 2009
Author: kremenek
Date: Mon Oct 19 17:27:32 2009
New Revision: 84555
URL: http://llvm.org/viewvc/llvm-project?rev=84555&view=rev
Log:
Fix inverted preprocessor guard, and fix the resulting compiler error that was unmasked.
Modified:
cfe/trunk/tools/CIndex/CIndex.cpp
Modified: cfe/trunk/tools/CIndex/CIndex.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/CIndex/CIndex.cpp?rev=84555&r1=84554&r2=84555&view=diff
==============================================================================
--- cfe/trunk/tools/CIndex/CIndex.cpp (original)
+++ cfe/trunk/tools/CIndex/CIndex.cpp Mon Oct 19 17:27:32 2009
@@ -384,11 +384,11 @@
argv.push_back(NULL);
// Generate the AST file in a separate process.
-#ifdef LLVM_ON_WIN32
- llvm::sys::Path DevNull("/dev/null")
- llvm::sys::Path *Redirects[] = { &DevNull, &DevNull, &DevNull, NULL };
- llvm::sys::Program::ExecuteAndWait(ClangPath, &argv[0],
- !displayDiagnostics ? Redirects : NULL);
+#ifndef LLVM_ON_WIN32
+ llvm::sys::Path DevNull("/dev/null");
+ const llvm::sys::Path *Redirects[] = { &DevNull, &DevNull, &DevNull, NULL };
+ llvm::sys::Program::ExecuteAndWait(ClangPath, &argv[0], NULL,
+ !displayDiagnostics ? &Redirects[0] :NULL);
#else
// FIXME: I don't know what is the equivalent '/dev/null' redirect for
// Windows for this API.
More information about the cfe-commits
mailing list