aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-08-28 01:18:44 +0000
committerTed Kremenek <kremenek@apple.com>2008-08-28 01:18:44 +0000
commitcb344d0f9b9f4b9114ab2b35a34017e89d8b0c17 (patch)
treef9155a2cdb957fdbf6e9d29760a9a66642eba63b
parent6855492ab6d55a6dd70691efa166aa0b2ee0f56e (diff)
Fix regression: immediately terminate ccc-analyzer when gcc reports an error.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55452 91177308-0d34-0410-b5e6-96231b3b80d8
-rwxr-xr-xutils/ccc-analyzer1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/ccc-analyzer b/utils/ccc-analyzer
index 6aa03bc922..97554a875c 100755
--- a/utils/ccc-analyzer
+++ b/utils/ccc-analyzer
@@ -192,6 +192,7 @@ my $Output;
# Forward arguments to gcc.
my $Status = system($CC,@ARGV);
+if ($Status) { exit($Status >> 8); }
# Get the analysis options.
my $Analyses = $ENV{'CCC_ANALYZER_ANALYSIS'};