aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/Driver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Driver/Driver.cpp')
-rw-r--r--lib/Driver/Driver.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp
index 7c1b91b251..dff30ee404 100644
--- a/lib/Driver/Driver.cpp
+++ b/lib/Driver/Driver.cpp
@@ -382,6 +382,9 @@ void Driver::generateCompilationDiagnostics(Compilation &C,
if (FailingCommand && FailingCommand->getCreator().isLinkJob())
return;
+ // Print the version of the compiler.
+ PrintVersion(C, llvm::errs());
+
Diag(clang::diag::note_drv_command_failed_diag_msg)
<< "\n********************\n********************\n\n"
"PLEASE submit a BUG REPORT to " BUG_REPORT_URL " and _INCLUDE_ the "
@@ -389,9 +392,6 @@ void Driver::generateCompilationDiagnostics(Compilation &C,
"and associated RUN SCRIPT.\n"
"\n********************\n********************";
- // Print the version of the compiler.
- PrintVersion(C, llvm::errs());
-
// Suppress driver output and emit preprocessor output to temp file.
CCCIsCPP = true;
CCGenDiagnostics = true;