diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-09-03 17:31:46 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-09-03 17:31:46 +0000 |
commit | 688121571ae35f2f767ae16aa84c8df4a889ab72 (patch) | |
tree | 7e3e176b69634344a4474262d04550eee100b48c /llvm/unittests/Bitcode/BitReaderTest.cpp | |
parent | 99b96f42d6d3609d706fb38a85abee2e7127d304 (diff) | |
download | bcm5719-llvm-688121571ae35f2f767ae16aa84c8df4a889ab72.tar.gz bcm5719-llvm-688121571ae35f2f767ae16aa84c8df4a889ab72.zip |
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
Diffstat (limited to 'llvm/unittests/Bitcode/BitReaderTest.cpp')
-rw-r--r-- | llvm/unittests/Bitcode/BitReaderTest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/unittests/Bitcode/BitReaderTest.cpp b/llvm/unittests/Bitcode/BitReaderTest.cpp index eb6c125b79b..a27332b5b35 100644 --- a/llvm/unittests/Bitcode/BitReaderTest.cpp +++ b/llvm/unittests/Bitcode/BitReaderTest.cpp @@ -53,7 +53,8 @@ static std::unique_ptr<Module> getLazyModuleFromAssembly(LLVMContext &Context, writeModuleToBuffer(parseAssembly(Assembly), Mem); std::unique_ptr<MemoryBuffer> Buffer = MemoryBuffer::getMemBuffer(Mem.str(), "test", false); - ErrorOr<Module *> ModuleOrErr = getLazyBitcodeModule(Buffer, Context); + ErrorOr<Module *> ModuleOrErr = + getLazyBitcodeModule(std::move(Buffer), Context); return std::unique_ptr<Module>(ModuleOrErr.get()); } |