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/unittests/Bitcode/BitReaderTest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'llvm/unittests/Bitcode/BitReaderTest.cpp') diff --git a/llvm/unittests/Bitcode/BitReaderTest.cpp b/llvm/unittests/Bitcode/BitReaderTest.cpp index eb6c125..a27332b 100644 --- a/llvm/unittests/Bitcode/BitReaderTest.cpp +++ b/llvm/unittests/Bitcode/BitReaderTest.cpp @@ -53,7 +53,8 @@ static std::unique_ptr getLazyModuleFromAssembly(LLVMContext &Context, writeModuleToBuffer(parseAssembly(Assembly), Mem); std::unique_ptr Buffer = MemoryBuffer::getMemBuffer(Mem.str(), "test", false); - ErrorOr ModuleOrErr = getLazyBitcodeModule(Buffer, Context); + ErrorOr ModuleOrErr = + getLazyBitcodeModule(std::move(Buffer), Context); return std::unique_ptr(ModuleOrErr.get()); } -- cgit v1.1