Fix potential use of uninitialized variable.

llvm-svn: 65109
This commit is contained in:
Ted Kremenek 2009-02-20 04:34:29 +00:00
parent 2a12ae7d1f
commit 40cd13ecff
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ sub DieDiag {
my $ClangSB = Cwd::realpath("$RealBin/cbin/clang"); my $ClangSB = Cwd::realpath("$RealBin/cbin/clang");
my $Clang = $ClangSB; my $Clang = $ClangSB;
if (! -x $ClangSB) { if (!defined $ClangSB || ! -x $ClangSB) {
$Clang = "clang"; $Clang = "clang";
} }