mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
[Allocator] Fix an obvious think-o with the move assignment
implementation of the SpecificBumpPtrAllocator -- we have to actually move the subobject. =] Noticed when using this code more directly. llvm-svn: 206582
This commit is contained in:
parent
d0707ed2ba
commit
8142749c02
@ -370,7 +370,7 @@ public:
|
||||
~SpecificBumpPtrAllocator() { DestroyAll(); }
|
||||
|
||||
SpecificBumpPtrAllocator &operator=(SpecificBumpPtrAllocator &&RHS) {
|
||||
Allocator = RHS.Allocator;
|
||||
Allocator = std::move(RHS.Allocator);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user