mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-12 11:03:24 +00:00
Explicitly define move constructor and move assignment operator to appease MSVC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212679 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0f29cefbc2
commit
ac37f731e7
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user