diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2016-10-20 12:20:28 +0000 |
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2016-10-20 12:20:28 +0000 |
| commit | 2a8bef8769ebe355e76060ad964ae95bfaf5eafb (patch) | |
| tree | 6fe48a292aa7fedb4f85fd97e0b33fa4a9588a17 /llvm/lib/Analysis | |
| parent | 59838f7ea675e5b3251d730b59325786b3f6e68c (diff) | |
| download | bcm5719-llvm-2a8bef8769ebe355e76060ad964ae95bfaf5eafb.tar.gz bcm5719-llvm-2a8bef8769ebe355e76060ad964ae95bfaf5eafb.zip | |
Do a sweep over move ctors and remove those that are identical to the default.
All of these existed because MSVC 2013 was unable to synthesize default
move ctors. We recently dropped support for it so all that error-prone
boilerplate can go.
No functionality change intended.
llvm-svn: 284721
Diffstat (limited to 'llvm/lib/Analysis')
| -rw-r--r-- | llvm/lib/Analysis/StratifiedSets.h | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/llvm/lib/Analysis/StratifiedSets.h b/llvm/lib/Analysis/StratifiedSets.h index fd3a241d79c..772df175b38 100644 --- a/llvm/lib/Analysis/StratifiedSets.h +++ b/llvm/lib/Analysis/StratifiedSets.h @@ -85,17 +85,8 @@ struct StratifiedLink { template <typename T> class StratifiedSets { public: StratifiedSets() = default; - - // TODO: Figure out how to make MSVC not call the copy ctor here, and delete - // it. - - // 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(StratifiedSets &&) = default; + StratifiedSets &operator=(StratifiedSets &&) = default; StratifiedSets(DenseMap<T, StratifiedInfo> Map, std::vector<StratifiedLink> Links) |

