mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
UseListShuffleVector: Add a copy constructor to appease msc17.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214178 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6f800f7333
commit
b7e87b07bb
@ -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
Block a user