summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
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