diff --git a/include/llvm/Support/Allocator.h b/include/llvm/Support/Allocator.h index cdd48e0ab03..774363fb491 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; }