Try to fix windows fail at r261902.
authorHongbin Zheng <etherzhhb@gmail.com>
Thu, 25 Feb 2016 18:24:19 +0000 (18:24 +0000)
committerHongbin Zheng <etherzhhb@gmail.com>
Thu, 25 Feb 2016 18:24:19 +0000 (18:24 +0000)
Introduce move constructor and move assignment operator to PostDominatorTree.

llvm-svn: 261910

llvm/include/llvm/Analysis/PostDominators.h

index 07d1a86..93884c7 100644 (file)
@@ -25,7 +25,17 @@ class PreservedAnalyses;
 /// compute the post-dominator tree.
 ///
 struct PostDominatorTree : public DominatorTreeBase<BasicBlock> {
+  typedef DominatorTreeBase<BasicBlock> Base;
+
   PostDominatorTree() : DominatorTreeBase<BasicBlock>(true) {}
+
+  PostDominatorTree(PostDominatorTree &&Arg)
+    : Base(std::move(static_cast<Base &>(Arg))) {}
+
+  PostDominatorTree &operator=(PostDominatorTree &&RHS) {
+    Base::operator=(std::move(static_cast<Base &>(RHS)));
+    return *this;
+  }
 };
 
 /// \brief Analysis pass which computes a \c PostDominatorTree.