diff options
author | David Blaikie <dblaikie@gmail.com> | 2016-03-17 20:45:38 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2016-03-17 20:45:38 +0000 |
commit | 2522f8bea49d41ad75f6c0729f46c517239b6e1b (patch) | |
tree | f9fc8163300a694be3726ed6b78a608ebc87ed32 | |
parent | fde79b40c21dc397a2524c728f4102260eceafed (diff) | |
download | bcm5719-llvm-2522f8bea49d41ad75f6c0729f46c517239b6e1b.tar.gz bcm5719-llvm-2522f8bea49d41ad75f6c0729f46c517239b6e1b.zip |
Re-add (user defined) move ops to UnresolvedSetImpl to allow UnresolvedSet to be implicitly movable
llvm-svn: 263747
-rw-r--r-- | clang/include/clang/AST/UnresolvedSet.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/include/clang/AST/UnresolvedSet.h b/clang/include/clang/AST/UnresolvedSet.h index 672ec4433d7..c1be2aa0f20 100644 --- a/clang/include/clang/AST/UnresolvedSet.h +++ b/clang/include/clang/AST/UnresolvedSet.h @@ -63,6 +63,10 @@ private: UnresolvedSetImpl(const UnresolvedSetImpl &) = default; UnresolvedSetImpl &operator=(const UnresolvedSetImpl &) = default; + // FIXME: Switch these to "= default" once MSVC supports generating move ops + UnresolvedSetImpl(UnresolvedSetImpl &&) {} + UnresolvedSetImpl &operator=(UnresolvedSetImpl &&) { return *this; } + public: // We don't currently support assignment through this iterator, so we might // as well use the same implementation twice. |