]> granicus.if.org Git - clang/commitdiff
Fix passing of -analyzer-max-loop from scan-build to clang.
authorTed Kremenek <kremenek@apple.com>
Tue, 28 Aug 2012 16:48:48 +0000 (16:48 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 28 Aug 2012 16:48:48 +0000 (16:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162765 91177308-0d34-0410-b5e6-96231b3b80d8

tools/scan-build/scan-build

index 183a0ec8fa24531803c605bfa37535849dbe9ca0..35208262b21d4adf1579d2551825f828af3acd9e 100755 (executable)
@@ -1526,7 +1526,7 @@ Diag("Using '$Clang' for static analysis\n");
 SetHtmlEnv(\@ARGV, $HtmlDir);
 if ($AnalyzeHeaders) { push @AnalysesToRun,"-analyzer-opt-analyze-headers"; }
 if ($AnalyzerStats) { push @AnalysesToRun, '-analyzer-checker=debug.Stats'; }
-if ($MaxLoop > 0) { push @AnalysesToRun, '-analyzer-max-loop=$MaxLoop'; }
+if ($MaxLoop > 0) { push @AnalysesToRun, '-analyzer-max-loop $MaxLoop'; }
 
 # Delay setting up other environment variables in case we can do true
 # interposition.