From: Ted Kremenek Date: Wed, 25 Feb 2009 00:10:37 +0000 (+0000) Subject: Fix condition in ccc-analyzer that would cause the analyzer never to be run. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0e0eb8b051b2917aef85b24bb68297b8c234dbb5;p=clang Fix condition in ccc-analyzer that would cause the analyzer never to be run. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65417 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/ccc-analyzer b/utils/ccc-analyzer index 813c3d91cb..407fb90e60 100755 --- a/utils/ccc-analyzer +++ b/utils/ccc-analyzer @@ -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.