aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-07-21 05:40:53 +0000
committerChris Lattner <sabre@nondot.org>2007-07-21 05:40:53 +0000
commit96f1a6403d5011c44ba75e6d70d0779da2413cad (patch)
treecaf8b461a39cd09022f14c1e746b6631d86fb566
parentcb4f9a6d0be445d84af35ba81323be6127816f9e (diff)
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
-rw-r--r--Driver/clang.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Driver/clang.cpp b/Driver/clang.cpp
index ac12ef7a72..4ef7400c34 100644
--- a/Driver/clang.cpp
+++ b/Driver/clang.cpp
@@ -920,5 +920,5 @@ int main(int argc, char **argv) {
fprintf(stderr, "\n");
}
- return Diags.getNumErrors();
+ return Diags.getNumErrors() != 0;
}