aboutsummaryrefslogtreecommitdiff
path: root/tools/scan-build
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2012-08-28 16:48:48 +0000
committerTed Kremenek <kremenek@apple.com>2012-08-28 16:48:48 +0000
commit92daae0186a4b25a189132d65213b53745c42986 (patch)
treed1bc21811793b1e53cb3e061d67a231cdcb29b58 /tools/scan-build
parent88617a24adafed42e33d196972f97c72d9a5e0a0 (diff)
Fix passing of -analyzer-max-loop from scan-build to clang.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162765 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/scan-build')
-rwxr-xr-xtools/scan-build/scan-build2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/scan-build/scan-build b/tools/scan-build/scan-build
index 183a0ec8fa..35208262b2 100755
--- a/tools/scan-build/scan-build
+++ b/tools/scan-build/scan-build
@@ -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.