[llvm] r261910 - Try to fix windows fail at r261902.

Hongbin Zheng via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 25 10:24:20 PST 2016


Author: ether
Date: Thu Feb 25 12:24:19 2016
New Revision: 261910

URL: http://llvm.org/viewvc/llvm-project?rev=261910&view=rev
Log:
Try to fix windows fail at r261902.

Introduce move constructor and move assignment operator to PostDominatorTree.

Modified:
    llvm/trunk/include/llvm/Analysis/PostDominators.h

Modified: llvm/trunk/include/llvm/Analysis/PostDominators.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/PostDominators.h?rev=261910&r1=261909&r2=261910&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/PostDominators.h (original)
+++ llvm/trunk/include/llvm/Analysis/PostDominators.h Thu Feb 25 12:24:19 2016
@@ -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.




More information about the llvm-commits mailing list