1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00

Explicitly define move constructor and move assignment operator to appease MSVC.

llvm-svn: 212679
This commit is contained in:
Peter Collingbourne 2014-07-10 04:29:06 +00:00
parent e5f0c51843
commit 0ccbe0740d

View File

@ -34,6 +34,15 @@ namespace llvm {
/// reason for doing so is efficiency; StringSet is much faster at matching
/// literal strings than Regex.
struct SpecialCaseList::Entry {
Entry() {}
Entry(Entry &&Other)
: Strings(std::move(Other.Strings)), RegEx(std::move(Other.RegEx)) {}
Entry &operator=(Entry &&Other) {
Strings = std::move(Other.Strings);
RegEx = std::move(Other.RegEx);
return *this;
}
StringSet<> Strings;
std::unique_ptr<Regex> RegEx;