Introduce move constructor and move assignment operator to PostDominatorTree.
llvm-svn: 261910
/// 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.