diff options
author | George Burgess IV <george.burgess.iv@gmail.com> | 2016-06-08 17:27:14 +0000 |
---|---|---|
committer | George Burgess IV <george.burgess.iv@gmail.com> | 2016-06-08 17:27:14 +0000 |
commit | 785f3911311e461a662f44a7c06837c032fc57f4 (patch) | |
tree | 00e06fd17502c2d7347a6f3314229cdc6b04693f /llvm/lib/Analysis/StratifiedSets.h | |
parent | a1657a9e64c1e8df34e32ca69fac918a7d28c60a (diff) | |
download | bcm5719-llvm-785f3911311e461a662f44a7c06837c032fc57f4.tar.gz bcm5719-llvm-785f3911311e461a662f44a7c06837c032fc57f4.zip |
Try to appease buildbots.
r272064 apparently made them angry. This undoes some changes made in
r272064 (defaulting move ctors) to make them happy again.
llvm-svn: 272173
Diffstat (limited to 'llvm/lib/Analysis/StratifiedSets.h')
-rw-r--r-- | llvm/lib/Analysis/StratifiedSets.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/llvm/lib/Analysis/StratifiedSets.h b/llvm/lib/Analysis/StratifiedSets.h index 85503131ad8..d4cdbdb4fb1 100644 --- a/llvm/lib/Analysis/StratifiedSets.h +++ b/llvm/lib/Analysis/StratifiedSets.h @@ -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()) |