[PATCH] D62619: [analyzer][Dominators] Add a control dependency tree builder + a new debug checker
Gábor Horváth via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 5 02:13:51 PDT 2019
xazax.hun added a comment.
I did not check the algorithm as you planned changes to that. I only did a quick review of the interface which might also be rendered obsolete once you update this patch.
================
Comment at: clang/include/clang/Analysis/Analyses/Dominators.h:191
+
+ CFGDomTree &getCFGDomTree() { return DomTree; }
+ const CFGDomTree &getCFGDomTree() const { return DomTree; }
----------------
Is it sensible to have a non-const reference to the DomTree? Why would the user want to modify this? I think do not really do transformations on the CFG once it is built.
================
Comment at: clang/include/clang/Analysis/Analyses/Dominators.h:193
+ const CFGDomTree &getCFGDomTree() const { return DomTree; }
+ CFGPostDomTree &getCFGPostDomTree() { return PostDomTree; }
+ const CFGPostDomTree &getCFGPostDomTree() const { return PostDomTree; }
----------------
Same as above.
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D62619/new/
https://reviews.llvm.org/D62619
More information about the cfe-commits
mailing list