summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-05-12 18:04:43 +0000
committerTed Kremenek <kremenek@apple.com>2009-05-12 18:04:43 +0000
commit3c2775f0b038b27fd5e5b279a4c4d391278c29bf (patch)
tree0d714b4a30e1848b1c16fe770e78faed1fa4485e /clang
parent5a4d12afbf2bc4ed6390a054bf525b271192afdb (diff)
downloadbcm5719-llvm-3c2775f0b038b27fd5e5b279a4c4d391278c29bf.tar.gz
bcm5719-llvm-3c2775f0b038b27fd5e5b279a4c4d391278c29bf.zip
Make scan-build process of --use-cc and --html-title more robust.
llvm-svn: 71567
Diffstat (limited to 'clang')
-rwxr-xr-xclang/utils/scan-build6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/utils/scan-build b/clang/utils/scan-build
index 74249f7031e..dd289a0d6c0 100755
--- a/clang/utils/scan-build
+++ b/clang/utils/scan-build
@@ -1067,7 +1067,7 @@ while (@ARGV) {
if ($arg =~ /^--html-title(=(.+))?$/) {
shift @ARGV;
- if ($2 eq '') {
+ if (!defined $2 || $2 eq '') {
if (!@ARGV) {
DieDiag("'--html-title' option requires a string.\n");
}
@@ -1090,7 +1090,7 @@ while (@ARGV) {
shift @ARGV;
my $cc;
- if ($2 eq "") {
+ if (!defined $2 || $2 eq "") {
if (!@ARGV) {
DieDiag("'--use-cc' option requires a compiler executable name.\n");
}
@@ -1107,7 +1107,7 @@ while (@ARGV) {
if ($arg =~ /^--use-c\+\+(=(.+))?$/) {
shift @ARGV;
- if ($2 eq "") {
+ if (!defined $2 || $2 eq "") {
if (!@ARGV) {
DieDiag("'--use-c++' option requires a compiler executable name.\n");
}
OpenPOWER on IntegriCloud