Skip to content

Commit

Permalink
Try to fix windows fail at r261902.
Browse files Browse the repository at this point in the history
Introduce move constructor and move assignment operator to PostDominatorTree.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@261910 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
etherzhhb committed Feb 25, 2016
1 parent ce1dab3 commit a143cf3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions include/llvm/Analysis/PostDominators.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit a143cf3

Please sign in to comment.