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:
e2239ff
)
UseListShuffleVector: Add a copy constructor to appease msc17.
author
NAKAMURA Takumi
<geek4civic@gmail.com>
Tue, 29 Jul 2014 12:20:50 +0000
(12:20 +0000)
committer
NAKAMURA Takumi
<geek4civic@gmail.com>
Tue, 29 Jul 2014 12:20:50 +0000
(12:20 +0000)
llvm-svn: 214178
llvm/include/llvm/IR/UseListOrder.h
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/IR/UseListOrder.h
b/llvm/include/llvm/IR/UseListOrder.h
index
128793b
..
c56d1ca
100644
(file)
--- a/
llvm/include/llvm/IR/UseListOrder.h
+++ b/
llvm/include/llvm/IR/UseListOrder.h
@@
-48,6
+48,13
@@
public:
std::memcpy(this, &X, sizeof(UseListShuffleVector));
X.Size = 0;
}
+ UseListShuffleVector(const UseListShuffleVector &X) {
+ std::memcpy(this, &X, sizeof(UseListShuffleVector));
+ if (!isSmall()) {
+ Storage.Ptr = new unsigned[Size];
+ std::memcpy(Storage.Ptr, X.Storage.Ptr, Size * sizeof(*Storage.Ptr));
+ }
+ }
explicit UseListShuffleVector(size_t Size) : Size(Size) {
if (!isSmall())
Storage.Ptr = new unsigned[Size];