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
diff --git a/utils/ccc-analyzer b/utils/ccc-analyzer
index 6aa03bc..97554a8 100755
--- a/utils/ccc-analyzer
+++ b/utils/ccc-analyzer
@@ -192,6 +192,7 @@
# Forward arguments to gcc.
my $Status = system($CC,@ARGV);
+if ($Status) { exit($Status >> 8); }
# Get the analysis options.
my $Analyses = $ENV{'CCC_ANALYZER_ANALYSIS'};