commit | 96f1a6403d5011c44ba75e6d70d0779da2413cad | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Sat Jul 21 05:40:53 2007 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Sat Jul 21 05:40:53 2007 +0000 |
tree | caf8b461a39cd09022f14c1e746b6631d86fb566 | |
parent | cb4f9a6d0be445d84af35ba81323be6127816f9e [diff] [blame] |
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; }