Try harder to appease MSVC after r265456

r265465 wasn't good enough.  I need to spell out all the moves.

llvm-svn: 265470
This commit is contained in:
Duncan P. N. Exon Smith 2016-04-05 21:25:33 +00:00
parent 85689d934a
commit 818e5f38d2
1 changed files with 12 additions and 3 deletions

View File

@ -105,9 +105,18 @@ class MDNodeMapper {
unsigned ID = ~0u;
TempMDNode Placeholder;
Data() = default;
Data(Data &&) = default;
Data &operator=(Data &&) = default;
Data() {}
Data(Data &&X)
: HasChangedOps(std::move(X.HasChangedOps)),
HasChangedAddress(std::move(X.HasChangedAddress)),
ID(std::move(X.ID)), Placeholder(std::move(X.Placeholder)) {}
Data &operator=(Data &&X) {
HasChangedOps = std::move(X.HasChangedOps);
HasChangedAddress = std::move(X.HasChangedAddress);
ID = std::move(X.ID);
Placeholder = std::move(X.Placeholder);
return *this;
}
};
SmallDenseMap<const Metadata *, Data, 32> Info;