From 4babe9076b46ce55a2646fefd84eefc5370bb124 Mon Sep 17 00:00:00 2001 From: scribam Date: Thu, 12 Jul 2018 21:05:27 +0200 Subject: [PATCH] clang: fix compilation on 3.8 --- Utilities/JIT.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utilities/JIT.cpp b/Utilities/JIT.cpp index b7d7db9949..61ef38bb08 100644 --- a/Utilities/JIT.cpp +++ b/Utilities/JIT.cpp @@ -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;