From bb48b353a1f6d7076c69eb79279a95f68c9189ed Mon Sep 17 00:00:00 2001 From: Hongbin Zheng Date: Thu, 25 Feb 2016 18:24:19 +0000 Subject: [PATCH] Try to fix windows fail at r261902. Introduce move constructor and move assignment operator to PostDominatorTree. llvm-svn: 261910 --- llvm/include/llvm/Analysis/PostDominators.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/llvm/include/llvm/Analysis/PostDominators.h b/llvm/include/llvm/Analysis/PostDominators.h index 07d1a86..93884c76 100644 --- a/llvm/include/llvm/Analysis/PostDominators.h +++ b/llvm/include/llvm/Analysis/PostDominators.h @@ -25,7 +25,17 @@ class PreservedAnalyses; /// compute the post-dominator tree. /// struct PostDominatorTree : public DominatorTreeBase { + typedef DominatorTreeBase Base; + PostDominatorTree() : DominatorTreeBase(true) {} + + PostDominatorTree(PostDominatorTree &&Arg) + : Base(std::move(static_cast(Arg))) {} + + PostDominatorTree &operator=(PostDominatorTree &&RHS) { + Base::operator=(std::move(static_cast(RHS))); + return *this; + } }; /// \brief Analysis pass which computes a \c PostDominatorTree. -- 2.7.4