Return an exit code of 1 if errors occur, not an exit code equal to the # errors :)


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@40189 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Driver/clang.cpp b/Driver/clang.cpp
index ac12ef7..4ef7400 100644
--- a/Driver/clang.cpp
+++ b/Driver/clang.cpp
@@ -920,5 +920,5 @@
     fprintf(stderr, "\n");
   }
   
-  return Diags.getNumErrors();
+  return Diags.getNumErrors() != 0;
 }