Use 'eq' operator, and enable regular experimental checks when --experimental-checks is passed to scan-build.

llvm-svn: 88673
This commit is contained in:
Ted Kremenek 2009-11-13 18:49:48 +00:00
parent f80dc08059
commit 9f2ee2bb26
2 changed files with 2 additions and 1 deletions

View File

@ -163,6 +163,7 @@ sub Analyze {
if (defined $ENV{"CCC_EXPERIMENTAL_CHECKS"}) {
push @CmdArgs,"-analyzer-experimental-internal-checks";
push @CmdArgs,"-analyzer-experimental-checks";
}
$RunAnalyzer = 1;

View File

@ -1099,7 +1099,7 @@ while (@ARGV) {
next;
}
if ($arg = "--experimental-checks") {
if ($arg eq "--experimental-checks") {
shift @ARGV;
$ENV{"CCC_EXPERIMENTAL_CHECKS"} = 1;
next;