[cfe-commits] r40189 - /cfe/trunk/Driver/clang.cpp
Chris Lattner
sabre at nondot.org
Fri Jul 20 22:40:53 PDT 2007
Author: lattner
Date: Sat Jul 21 00:40:53 2007
New Revision: 40189
URL: http://llvm.org/viewvc/llvm-project?rev=40189&view=rev
Log:
Return an exit code of 1 if errors occur, not an exit code equal to the # errors :)
Modified:
cfe/trunk/Driver/clang.cpp
Modified: cfe/trunk/Driver/clang.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/clang.cpp?rev=40189&r1=40188&r2=40189&view=diff
==============================================================================
--- cfe/trunk/Driver/clang.cpp (original)
+++ cfe/trunk/Driver/clang.cpp Sat Jul 21 00:40:53 2007
@@ -920,5 +920,5 @@
fprintf(stderr, "\n");
}
- return Diags.getNumErrors();
+ return Diags.getNumErrors() != 0;
}
More information about the cfe-commits
mailing list