From: Peter Collingbourne Date: Thu, 10 Jul 2014 04:29:06 +0000 (+0000) Subject: Explicitly define move constructor and move assignment operator to appease MSVC. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=ac37f731e78134602ac4b8f7a2ac42a3c4ff4a8f;p=oota-llvm.git 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 --- diff --git a/lib/Support/SpecialCaseList.cpp b/lib/Support/SpecialCaseList.cpp index a81ba23ff6d..43824891af3 100644 --- a/lib/Support/SpecialCaseList.cpp +++ b/lib/Support/SpecialCaseList.cpp @@ -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;