ccc-analyzer now correctly reports the exit code from 'cc'.
scan-build now correctly reports the exit code from the build command.
Fixes: <rdar://problem/6172224>


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55324 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/utils/scan-build b/utils/scan-build
index d04c289..90824ab 100755
--- a/utils/scan-build
+++ b/utils/scan-build
@@ -680,7 +680,7 @@
     $ENV{'LDPLUSPLUS'} = $LDPLUSPLUS;    
   }
   
-  return system(@$Args);
+  return (system(@$Args) >> 8);
 }
 
 ##----------------------------------------------------------------------------##