summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/ExprEngine.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Core/ExprEngine.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp b/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
index a9901a6cd7d..7f13c7f0a05 100644
--- a/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
+++ b/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
@@ -3141,9 +3141,13 @@ struct DOTGraphTraits<ExplodedNode*> : public DefaultDOTGraphTraits {
}
ProgramStateRef state = N->getState();
- Out << "\\|StateID: " << state->getID() << " ("
- << (const void*) state.get() << ")"
- << " NodeID: " << (const void*) N << "\\|";
+ ExplodedGraph &Graph =
+ static_cast<ExprEngine *>(state->getStateManager().getOwningEngine())
+ ->getGraph();
+
+ Out << "\\|StateID: " << state->getID() << " (" << (const void *)state.get()
+ << ")"
+ << " NodeID: " << N->getID(&Graph) << " (" << (const void *)N << ")\\|";
state->printDOT(Out, N->getLocationContext());
OpenPOWER on IntegriCloud