diff options
Diffstat (limited to 'llvm/include')
| -rw-r--r-- | llvm/include/llvm/Analysis/PostDominators.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/include/llvm/Analysis/PostDominators.h b/llvm/include/llvm/Analysis/PostDominators.h index 07d1a86f0d1..93884c762ff 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<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. |

