projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5feb7b
)
Explicitly define move constructor and move assignment operator to appease MSVC.
author
Peter Collingbourne
<peter@pcc.me.uk>
Thu, 10 Jul 2014 04:29:06 +0000
(
04:29
+0000)
committer
Peter Collingbourne
<peter@pcc.me.uk>
Thu, 10 Jul 2014 04:29:06 +0000
(
04:29
+0000)
llvm-svn: 212679
llvm/lib/Support/SpecialCaseList.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Support/SpecialCaseList.cpp
b/llvm/lib/Support/SpecialCaseList.cpp
index
a81ba23
..
4382489
100644
(file)
--- 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;