Try to appease buildbots.

r272064 apparently made them angry. This undoes some changes made in
r272064 (defaulting move ctors) to make them happy again.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272173 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
George Burgess IV 2016-06-08 17:27:14 +00:00
parent 99272168e0
commit 6f686563fd

View File

@ -97,14 +97,19 @@ public:
// If we have a need to copy these at some point, it's fine to default this.
// At the time of writing, copying StratifiedSets is always a perf bug.
StratifiedSets(const StratifiedSets &) = delete;
StratifiedSets(StratifiedSets &&Other) = default;
// Can't default these due to compile errors in MSVC2013
StratifiedSets(StratifiedSets &&Other) { *this = std::move(Other); }
StratifiedSets &operator=(StratifiedSets &&Other) {
Values = std::move(Other.Values);
Links = std::move(Other.Links);
return *this;
}
StratifiedSets(DenseMap<T, StratifiedInfo> Map,
std::vector<StratifiedLink> Links)
: Values(std::move(Map)), Links(std::move(Links)) {}
StratifiedSets &operator=(StratifiedSets<T> &&Other) = default;
Optional<StratifiedInfo> find(const T &Elem) const {
auto Iter = Values.find(Elem);
if (Iter == Values.end())