summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Core/Environment.cpp
diff options
context:
space:
mode:
authorGeorge Karpenkov <ekarpenkov@apple.com>2018-09-17 20:46:53 +0000
committerGeorge Karpenkov <ekarpenkov@apple.com>2018-09-17 20:46:53 +0000
commit8639c5d565cb48f56b9abeeea1e3932c0aa605f2 (patch)
treef4147f036ec4708408eb1e38dd325e70d98682e9 /clang/lib/StaticAnalyzer/Core/Environment.cpp
parentb1f9e4d285c51bf7d11121f310b063d17b330aaa (diff)
downloadbcm5719-llvm-8639c5d565cb48f56b9abeeea1e3932c0aa605f2.tar.gz
bcm5719-llvm-8639c5d565cb48f56b9abeeea1e3932c0aa605f2.zip
[analyzer] ExplodedGraph printing fixes
Fixes a number of issues: - Global variables are not used for communication - Trait should be defined on a graph, not on a node - Defining the trait on a graph allows us to use a correct allocator, no longer crashing while printing trimmed graphs Differential Revision: https://reviews.llvm.org/D52183 llvm-svn: 342413
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/Environment.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Core/Environment.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/Environment.cpp b/clang/lib/StaticAnalyzer/Core/Environment.cpp
index c390fe7dc11..96b59310363 100644
--- a/clang/lib/StaticAnalyzer/Core/Environment.cpp
+++ b/clang/lib/StaticAnalyzer/Core/Environment.cpp
@@ -226,7 +226,7 @@ void Environment::print(raw_ostream &Out, const char *NL,
PrintingPolicy PP = Context.getPrintingPolicy();
- Out << NL << NL << "Expressions by stack frame:" << NL;
+ Out << NL << "Expressions by stack frame:" << NL;
WithLC->dumpStack(Out, "", NL, Sep, [&](const LocationContext *LC) {
for (auto I : ExprBindings) {
if (I.first.getLocationContext() != LC)
OpenPOWER on IntegriCloud