projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c7edb1
)
[Allocator] Fix an obvious think-o with the move assignment
author
Chandler Carruth
<chandlerc@gmail.com>
Fri, 18 Apr 2014 11:02:29 +0000
(11:02 +0000)
committer
Chandler Carruth
<chandlerc@gmail.com>
Fri, 18 Apr 2014 11:02:29 +0000
(11:02 +0000)
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
include/llvm/Support/Allocator.h
patch
|
blob
|
history
diff --git
a/include/llvm/Support/Allocator.h
b/include/llvm/Support/Allocator.h
index cdd48e0ab0373a5479f309cc1ce6daf1f9afec62..774363fb49121b109bbcaa629ecf2e5fc5f3df2f 100644
(file)
--- 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;
}