diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2014-04-18 11:02:29 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2014-04-18 11:02:29 +0000 |
commit | d61b3c303c7c3241b10e414f248eb8be3d374664 (patch) | |
tree | e0fbcfa5b13ada3d372a4d28b76ca295b79d885d /include/llvm | |
parent | 4c7edb124086ada5d5667e8e87e5a697441ed0f5 (diff) | |
download | llvm-d61b3c303c7c3241b10e414f248eb8be3d374664.tar.gz llvm-d61b3c303c7c3241b10e414f248eb8be3d374664.tar.bz2 llvm-d61b3c303c7c3241b10e414f248eb8be3d374664.tar.xz |
[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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206582 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/Support/Allocator.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Support/Allocator.h b/include/llvm/Support/Allocator.h index cdd48e0ab0..774363fb49 100644 --- a/include/llvm/Support/Allocator.h +++ b/include/llvm/Support/Allocator.h @@ -370,7 +370,7 @@ public: ~SpecificBumpPtrAllocator() { DestroyAll(); } SpecificBumpPtrAllocator &operator=(SpecificBumpPtrAllocator &&RHS) { - Allocator = RHS.Allocator; + Allocator = std::move(RHS.Allocator); return *this; } |