diff options
author | George Karpenkov <ekarpenkov@apple.com> | 2018-09-17 20:46:53 +0000 |
---|---|---|
committer | George Karpenkov <ekarpenkov@apple.com> | 2018-09-17 20:46:53 +0000 |
commit | 8639c5d565cb48f56b9abeeea1e3932c0aa605f2 (patch) | |
tree | f4147f036ec4708408eb1e38dd325e70d98682e9 /clang/lib/StaticAnalyzer/Core/Environment.cpp | |
parent | b1f9e4d285c51bf7d11121f310b063d17b330aaa (diff) | |
download | bcm5719-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.cpp | 2 |
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) |