summaryrefslogtreecommitdiffstats
path: root/clang/tools
diff options
context:
space:
mode:
authorArtem Dergachev <artem.dergachev@gmail.com>2019-08-08 20:22:32 +0000
committerArtem Dergachev <artem.dergachev@gmail.com>2019-08-08 20:22:32 +0000
commit8b49e0fd39f946d0d2e6e3979a893b89dec1d9e0 (patch)
tree2aec765f675549356233e0341509377d9e5c8e46 /clang/tools
parent83df122039d18cf709e97e6fd8f9d56333ed4b58 (diff)
downloadbcm5719-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-xclang/tools/scan-build/libexec/ccc-analyzer2
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) {
OpenPOWER on IntegriCloud