clang: fix compilation on 3.8

This commit is contained in:
scribam 2018-07-12 21:05:27 +02:00 committed by Ivan
parent 46abe0f315
commit 4babe9076b

View File

@ -469,7 +469,7 @@ public:
{
auto buf = llvm::WritableMemoryBuffer::getNewUninitMemBuffer(cached.size());
cached.read(buf->getBufferStart(), buf->getBufferSize());
return buf;
return std::move(buf);
}
return nullptr;