Index: lib/Driver/Driver.cpp =================================================================== --- lib/Driver/Driver.cpp +++ lib/Driver/Driver.cpp @@ -76,6 +76,7 @@ #if LLVM_ON_UNIX #include // getpid #endif +#include using namespace clang::driver; using namespace clang; @@ -2759,7 +2760,7 @@ if (FinalOutput) { unsigned NumOutputs = 0; for (const Action *A : C.getActions()) - if (A->getType() != types::TY_Nothing) + if (A->getType() != types::TY_Nothing && A->getType() != types::TY_PCH) ++NumOutputs; if (NumOutputs > 1) {