From 86674ec4bfc835e97714bbffe4132da24b260110 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Tue, 22 May 2012 00:52:49 +0000 Subject: [PATCH] Use Perl prototypes instead of shift. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157228 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/analyzer/reducer.pl | 6 +++--- 1 file 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"); } -- 2.40.0