summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis
diff options
context:
space:
mode:
authorAnna Zaks <ganna@apple.com>2014-06-13 23:47:38 +0000
committerAnna Zaks <ganna@apple.com>2014-06-13 23:47:38 +0000
commita6fea1386feb3e07ec77b936ff17ead38d93f0ac (patch)
tree469a0c04e76390df99a8246747bc439ecd6ad265 /clang/lib/Analysis
parente287ef847ab1862015d24fbab1b2b1ea10efcd13 (diff)
downloadbcm5719-llvm-a6fea1386feb3e07ec77b936ff17ead38d93f0ac.tar.gz
bcm5719-llvm-a6fea1386feb3e07ec77b936ff17ead38d93f0ac.zip
Fix a crash in Retain Count checker error reporting
Fixes a crash in Retain Count checker error reporting logic by handing the allocation statement retrieval from a BlockEdge program point. Also added a simple CFG dump routine for debugging. llvm-svn: 210960
Diffstat (limited to 'clang/lib/Analysis')
-rw-r--r--clang/lib/Analysis/CFG.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/Analysis/CFG.cpp b/clang/lib/Analysis/CFG.cpp
index 61e5f5acf01..d6361e8767c 100644
--- a/clang/lib/Analysis/CFG.cpp
+++ b/clang/lib/Analysis/CFG.cpp
@@ -4356,6 +4356,10 @@ void CFGBlock::dump(const CFG* cfg, const LangOptions &LO,
print(llvm::errs(), cfg, LO, ShowColors);
}
+void CFGBlock::dump() const {
+ dump(getParent(), LangOptions(), false);
+}
+
/// print - A simple pretty printer of a CFGBlock that outputs to an ostream.
/// Generally this will only be called from CFG::print.
void CFGBlock::print(raw_ostream &OS, const CFG* cfg,
OpenPOWER on IntegriCloud