diff options
| author | Hongbin Zheng <etherzhhb@gmail.com> | 2016-02-25 18:24:19 +0000 | 
|---|---|---|
| committer | Hongbin Zheng <etherzhhb@gmail.com> | 2016-02-25 18:24:19 +0000 | 
| commit | bb48b353a1f6d7076c69eb79279a95f68c9189ed (patch) | |
| tree | 5d11fb12cbb512581fc1564e730cc3bb39b05240 /llvm/include | |
| parent | 07f9c0f558cb391ecf083dbee83fe1f5e1c0ab32 (diff) | |
| download | bcm5719-llvm-bb48b353a1f6d7076c69eb79279a95f68c9189ed.tar.gz bcm5719-llvm-bb48b353a1f6d7076c69eb79279a95f68c9189ed.zip | |
Try to fix windows fail at r261902.
Introduce move constructor and move assignment operator to PostDominatorTree.
llvm-svn: 261910
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. | 

