summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Karpenkov <ekarpenkov@apple.com>2018-09-27 22:31:13 +0000
committerGeorge Karpenkov <ekarpenkov@apple.com>2018-09-27 22:31:13 +0000
commit2f1865a462b9c1ed6ecc1a39333df614c101e026 (patch)
treee1c2368cdfbfd957a80891eefc04ded4bd68a1c0
parent553a7cee0f072704cdef402126c33471a5160b73 (diff)
[analyzer] Hotfix for the bug in exploded graph printing
-rw-r--r--clang/lib/StaticAnalyzer/Core/ExprEngine.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp b/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
index 6fc862857ec..90f89209275 100644
--- a/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
+++ b/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
@@ -2985,11 +2985,13 @@ struct DOTGraphTraits<ExplodedGraph*> : public DefaultDOTGraphTraits {
}
const ExplodedNode *OtherNode = FirstHiddenNode;
while (true) {
+ PreCallback(OtherNode);
if (Stop(OtherNode))
return true;
if (OtherNode == N)
break;
+ PostCallback(OtherNode);
OtherNode = *OtherNode->succ_begin();
}