We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 934f802 commit 3b5c6bfCopy full SHA for 3b5c6bf
llvm/include/llvm/Support/AllocatorBase.h
@@ -111,7 +111,7 @@ template <typename Alloc> class AllocatorHolder : Alloc {
111
public:
112
AllocatorHolder() = default;
113
AllocatorHolder(const Alloc &A) : Alloc(A) {}
114
- AllocatorHolder(Alloc &&A) : Alloc(static_cast<Alloc &&>(A)) {}
+ AllocatorHolder(Alloc &&A) : Alloc(std::move(A)) {}
115
Alloc &getAllocator() { return *this; }
116
const Alloc &getAllocator() const { return *this; }
117
};
0 commit comments