[driver] Print the compiler version before the diagnostic messages.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158729 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp
index 7c1b91b..dff30ee 100644
--- a/lib/Driver/Driver.cpp
+++ b/lib/Driver/Driver.cpp
@@ -382,6 +382,9 @@
   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 @@
     "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;