зеркало из https://github.com/microsoft/clang-1.git
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:
Родитель
296e8d5fdc
Коммит
6f12007499
|
@ -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");
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче