forked from OSchip/llvm-project
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:
parent
85689d934a
commit
818e5f38d2
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue