]> granicus.if.org Git - clang/commitdiff
Fix condition in ccc-analyzer that would cause the analyzer never to be run.
authorTed Kremenek <kremenek@apple.com>
Wed, 25 Feb 2009 00:10:37 +0000 (00:10 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 25 Feb 2009 00:10:37 +0000 (00:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65417 91177308-0d34-0410-b5e6-96231b3b80d8

utils/ccc-analyzer

index 813c3d91cb7c7c0c6015779d73c13b54f42b6318..407fb90e603dd3fb32106d60f1329aec73042462 100755 (executable)
@@ -483,7 +483,7 @@ foreach (my $i = 0; $i < scalar(@ARGV); ++$i) {
 if ($Action eq 'compile' or $Action eq 'link') {
   my @Archs = keys %ArchsSeen;
   # Skip the file if we don't support the architectures specified.
-  exit 0 if ($HadArch && scalar(@Archs) > 0);
+  exit 0 if ($HadArch && scalar(@Archs) == 0);
   
   foreach my $file (@Files) {
     # Determine the language for the file.