Index: lib/Driver/Driver.cpp =================================================================== --- lib/Driver/Driver.cpp +++ lib/Driver/Driver.cpp @@ -77,6 +77,7 @@ #include "llvm/Support/raw_ostream.h" #include #include +#include #include #if LLVM_ON_UNIX #include // getpid @@ -1401,6 +1402,11 @@ C.CleanupFileMap(C.getFailureResultFiles(), JA, true); } + // llvm/lib/Support/Unix/Signals.inc will exit with a special return code + // for SIGPIPE. Do not print diagnostics for this case. + if (Res == EX_IOERR) + continue; + // Print extra information about abnormal failures, if possible. // // This is ad-hoc, but we don't want to be excessively noisy. If the result