From: Artem Dergachev Date: Thu, 8 Aug 2019 20:22:32 +0000 (+0000) Subject: [analyzer] Fix scan-build's plist output in plist-html mode. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7b90e1974fd7a7dd2172854aba1954929f01697e;p=clang [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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@368338 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/scan-build/libexec/ccc-analyzer b/tools/scan-build/libexec/ccc-analyzer index 277ed9f83a..e1635e6c29 100755 --- a/tools/scan-build/libexec/ccc-analyzer +++ b/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) {