diff options
| author | Artem Dergachev <artem.dergachev@gmail.com> | 2019-08-08 20:22:32 +0000 |
|---|---|---|
| committer | Artem Dergachev <artem.dergachev@gmail.com> | 2019-08-08 20:22:32 +0000 |
| commit | 8b49e0fd39f946d0d2e6e3979a893b89dec1d9e0 (patch) | |
| tree | 2aec765f675549356233e0341509377d9e5c8e46 /clang/tools | |
| parent | 83df122039d18cf709e97e6fd8f9d56333ed4b58 (diff) | |
| download | bcm5719-llvm-8b49e0fd39f946d0d2e6e3979a893b89dec1d9e0.tar.gz bcm5719-llvm-8b49e0fd39f946d0d2e6e3979a893b89dec1d9e0.zip | |
[analyzer] Fix scan-build's plist output in plist-html mode.
r366941 accidentally made it delete all plist files
as soon as they're produced.
llvm-svn: 368338
Diffstat (limited to 'clang/tools')
| -rwxr-xr-x | clang/tools/scan-build/libexec/ccc-analyzer | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/tools/scan-build/libexec/ccc-analyzer b/clang/tools/scan-build/libexec/ccc-analyzer index 277ed9f83af..e1635e6c29b 100755 --- a/clang/tools/scan-build/libexec/ccc-analyzer +++ b/clang/tools/scan-build/libexec/ccc-analyzer @@ -118,7 +118,7 @@ my $ResultFile; # Remove any stale files at exit. END { - if (defined $ResultFile && $ResultFile ne "") { + if (defined $ResultFile && -z $ResultFile) { unlink($ResultFile); } if (defined $CleanupFile) { |

