[PATCH] D35316: [Dominators] Update Clang's DominatorTree to use the new template argument

Jakub Kuderski via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 12 11:06:43 PDT 2017


kuhar created this revision.
Herald added a reviewer: grosser.

This patch makes the Clang's DominatorTree use the new IsPostDom template argument for DominatorTreeBase.


https://reviews.llvm.org/D35316

Files:
  include/clang/Analysis/Analyses/Dominators.h


Index: include/clang/Analysis/Analyses/Dominators.h
===================================================================
--- include/clang/Analysis/Analyses/Dominators.h
+++ include/clang/Analysis/Analyses/Dominators.h
@@ -38,15 +38,15 @@
 class DominatorTree : public ManagedAnalysis {
   virtual void anchor();
 public:
-  llvm::DominatorTreeBase<CFGBlock>* DT;
+  llvm::DominatorTreeBase<CFGBlock, false>* DT;
 
   DominatorTree() {
-    DT = new llvm::DominatorTreeBase<CFGBlock>(false);
+    DT = new llvm::DominatorTreeBase<CFGBlock, false>();
   }
 
   ~DominatorTree() override { delete DT; }
 
-  llvm::DominatorTreeBase<CFGBlock>& getBase() { return *DT; }
+  llvm::DominatorTreeBase<CFGBlock, false>& getBase() { return *DT; }
 
   /// \brief This method returns the root CFGBlock of the dominators tree.
   ///


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35316.106258.patch
Type: text/x-patch
Size: 822 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170712/f69b462b/attachment.bin>


More information about the llvm-commits mailing list