From 688121571ae35f2f767ae16aa84c8df4a889ab72 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Wed, 3 Sep 2014 17:31:46 +0000 Subject: Pass a && to getLazyBitcodeModule. This forces callers to use std::move when calling it. It is somewhat odd to have code with std::move that doesn't always move, but it is also odd to have code without std::move that sometimes moves. llvm-svn: 217049 --- llvm/lib/Object/IRObjectFile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Object/IRObjectFile.cpp') diff --git a/llvm/lib/Object/IRObjectFile.cpp b/llvm/lib/Object/IRObjectFile.cpp index 4c050d5badb..0259b46c70c 100644 --- a/llvm/lib/Object/IRObjectFile.cpp +++ b/llvm/lib/Object/IRObjectFile.cpp @@ -270,7 +270,7 @@ llvm::object::IRObjectFile::createIRObjectFile(MemoryBufferRef Object, std::unique_ptr Buff(MemoryBuffer::getMemBuffer(Object, false)); - ErrorOr MOrErr = getLazyBitcodeModule(Buff, Context); + ErrorOr MOrErr = getLazyBitcodeModule(std::move(Buff), Context); if (std::error_code EC = MOrErr.getError()) return EC; -- cgit v1.2.3