From: Chris Lattner Date: Sat, 21 Jul 2007 05:40:53 +0000 (+0000) Subject: Return an exit code of 1 if errors occur, not an exit code equal to the # errors :) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=96f1a6403d5011c44ba75e6d70d0779da2413cad;p=clang 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 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; }