Use explicit variable instead of $?

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55501 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Ted Kremenek 2008-08-28 21:28:55 +00:00
Родитель 296e8d5fdc
Коммит 6f12007499
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -110,14 +110,14 @@ sub Analyze {
push @CmdArgs,"--analyzer-viz-egraph-ubigraph";
}
system $Cmd,@CmdArgs;
my $Result = system $Cmd,@CmdArgs;
# Did the command die because of a signal?
if ($? & 127 and $Cmd eq $Clang and defined $HtmlDir) {
if ($Result & 127 and $Cmd eq $Clang and defined $HtmlDir) {
ProcessClangFailure($Lang, $file, \@CmdArgsSansAnalyses, $HtmlDir,
"Crash");
}
elsif ($?) {
elsif ($Result) {
ProcessClangFailure($Lang, $file, \@CmdArgsSansAnalyses, $HtmlDir,
"Parser Rejects");
}