aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2012-05-22 00:52:49 +0000
committerTed Kremenek <kremenek@apple.com>2012-05-22 00:52:49 +0000
commit86674ec4bfc835e97714bbffe4132da24b260110 (patch)
tree02eb14fb8d3dd3684b222edd983f6c5e891745cf
parent2bddd43bd87efedc308094e80af3917ef2c9a0d4 (diff)
Use Perl prototypes instead of shift.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157228 91177308-0d34-0410-b5e6-96231b3b80d8
-rwxr-xr-xutils/analyzer/reducer.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/analyzer/reducer.pl b/utils/analyzer/reducer.pl
index f2dac1fc10..095d501d0a 100755
--- a/utils/analyzer/reducer.pl
+++ b/utils/analyzer/reducer.pl
@@ -24,7 +24,7 @@ my $reduceOut = "$dir/reduceOut";
my $command;
if (scalar(@ARGV) > 0) { $command = \@ARGV; }
else {
- my $compiler = "/Users/kremenek/llvm-cmake-release/bin/clang";
+ my $compiler = "clang";
$command = [$compiler, "-fsyntax-only", "-Wfatal-errors", "-Wno-deprecated-declarations", "-Wimplicit-function-declaration"];
}
push @$command, $srcFile;
@@ -49,8 +49,8 @@ close(OUT);
`chmod +x $scriptFile`;
print "$prog: starting reduction\n";
-sub multidelta {
- my $level = shift @_;
+sub multidelta($) {
+ my ($level) = @_;
system("multidelta -level=$level $scriptFile $srcFile");
}