summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/SpecialCaseList.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2014-07-10 04:29:06 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2014-07-10 04:29:06 +0000
commit05b9ebf2f96b7d6f4d8110195d4d728e892e84c8 (patch)
treede66f1977ccdd17b2ee0ffed89b3ff07fa4f468c /llvm/lib/Support/SpecialCaseList.cpp
parentd5feb7ba426e9bb845951ab71b1065cd11e01a53 (diff)
downloadbcm5719-llvm-05b9ebf2f96b7d6f4d8110195d4d728e892e84c8.tar.gz
bcm5719-llvm-05b9ebf2f96b7d6f4d8110195d4d728e892e84c8.zip
Explicitly define move constructor and move assignment operator to appease MSVC.
llvm-svn: 212679
Diffstat (limited to 'llvm/lib/Support/SpecialCaseList.cpp')
-rw-r--r--llvm/lib/Support/SpecialCaseList.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/lib/Support/SpecialCaseList.cpp b/llvm/lib/Support/SpecialCaseList.cpp
index a81ba23ff6d..43824891af3 100644
--- a/llvm/lib/Support/SpecialCaseList.cpp
+++ b/llvm/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> RegEx;
OpenPOWER on IntegriCloud