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 4911235 commit 19fe5c1Copy full SHA for 19fe5c1
llvm/include/llvm/Support/Memory.h
@@ -137,7 +137,7 @@ namespace sys {
137
class OwningMemoryBlock {
138
public:
139
OwningMemoryBlock() = default;
140
- explicit OwningMemoryBlock(MemoryBlock M) : M(M) {}
+ explicit OwningMemoryBlock(MemoryBlock M) : M(std::move(M)) {}
141
OwningMemoryBlock(OwningMemoryBlock &&Other) {
142
M = Other.M;
143
Other.M = MemoryBlock();
0 commit comments