diff options
author | Anna Zaks <ganna@apple.com> | 2014-06-13 23:47:38 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2014-06-13 23:47:38 +0000 |
commit | 71cb4aa32fab71646f152dcfcf8e2a04607e25b1 (patch) | |
tree | 7908bd2db3ec31a52ee14f7570295ed350ad954a /include | |
parent | 31c3b80b5f6bb2e6597f660d27cfe5d34146f53b (diff) | |
download | clang-71cb4aa32fab71646f152dcfcf8e2a04607e25b1.tar.gz clang-71cb4aa32fab71646f152dcfcf8e2a04607e25b1.tar.bz2 clang-71cb4aa32fab71646f152dcfcf8e2a04607e25b1.tar.xz |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@210960 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/clang/Analysis/CFG.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/clang/Analysis/CFG.h b/include/clang/Analysis/CFG.h index 7909fdc09c..891fb90691 100644 --- a/include/clang/Analysis/CFG.h +++ b/include/clang/Analysis/CFG.h @@ -641,6 +641,8 @@ public: CFG *getParent() const { return Parent; } + void dump() const; + void dump(const CFG *cfg, const LangOptions &LO, bool ShowColors = false) const; void print(raw_ostream &OS, const CFG* cfg, const LangOptions &LO, bool ShowColors) const; |