forked from OSchip/llvm-project
UseListShuffleVector: Add a copy constructor to appease msc17.
llvm-svn: 214178
This commit is contained in:
parent
e2239ff3eb
commit
18e74f5507
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue