diff options
author | Anna Zaks <ganna@apple.com> | 2011-12-05 21:33:11 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2011-12-05 21:33:11 +0000 |
commit | 02f34c5003b2c5067675f89ffce0a84c28faf722 (patch) | |
tree | 2b397ab683807f4ecc36ae16cc9866220842f797 /lib/StaticAnalyzer/Checkers/DebugCheckers.cpp | |
parent | eca4e6e58170129cbdf105b2cfdb9ac2be61858e (diff) |
[analyzer] Rely on LLVM Dominators in Clang dominator computation.
(Previously, Clang used it's implementation of dominators.)
The patch is contributed by Guoping Long!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145858 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Checkers/DebugCheckers.cpp')
-rw-r--r-- | lib/StaticAnalyzer/Checkers/DebugCheckers.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/StaticAnalyzer/Checkers/DebugCheckers.cpp b/lib/StaticAnalyzer/Checkers/DebugCheckers.cpp index c06be4467a..bd1b8542f6 100644 --- a/lib/StaticAnalyzer/Checkers/DebugCheckers.cpp +++ b/lib/StaticAnalyzer/Checkers/DebugCheckers.cpp @@ -30,8 +30,8 @@ public: void checkASTCodeBody(const Decl *D, AnalysisManager& mgr, BugReporter &BR) const { if (AnalysisDeclContext *AC = mgr.getAnalysisDeclContext(D)) { - DominatorTree dom(*AC); - dom.BuildDominatorTree(); + DominatorTree dom; + dom.buildDominatorTree(*AC); dom.dump(); } } |