]> granicus.if.org Git - clang/commitdiff
Fix regression: immediately terminate ccc-analyzer when gcc reports an error.
authorTed Kremenek <kremenek@apple.com>
Thu, 28 Aug 2008 01:18:44 +0000 (01:18 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 28 Aug 2008 01:18:44 +0000 (01:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55452 91177308-0d34-0410-b5e6-96231b3b80d8

utils/ccc-analyzer

index 6aa03bc9220e33a95f3eb0d25e5b00da1f9749da..97554a875cada5a2d9f727a125ca58397a188832 100755 (executable)
@@ -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'};