diff options
Diffstat (limited to 'clang/tools/scan-build/libexec/ccc-analyzer')
| -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) { |

