summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Reader/BitReader.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-09-03 17:31:46 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-09-03 17:31:46 +0000
commit688121571ae35f2f767ae16aa84c8df4a889ab72 (patch)
tree7e3e176b69634344a4474262d04550eee100b48c /llvm/lib/Bitcode/Reader/BitReader.cpp
parent99b96f42d6d3609d706fb38a85abee2e7127d304 (diff)
downloadbcm5719-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/lib/Bitcode/Reader/BitReader.cpp')
-rw-r--r--llvm/lib/Bitcode/Reader/BitReader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitReader.cpp b/llvm/lib/Bitcode/Reader/BitReader.cpp
index 76a7e6ae159..9b3acb5ca0a 100644
--- a/llvm/lib/Bitcode/Reader/BitReader.cpp
+++ b/llvm/lib/Bitcode/Reader/BitReader.cpp
@@ -54,7 +54,7 @@ LLVMBool LLVMGetBitcodeModuleInContext(LLVMContextRef ContextRef,
std::unique_ptr<MemoryBuffer> Owner(unwrap(MemBuf));
ErrorOr<Module *> ModuleOrErr =
- getLazyBitcodeModule(Owner, *unwrap(ContextRef));
+ getLazyBitcodeModule(std::move(Owner), *unwrap(ContextRef));
Owner.release();
if (std::error_code EC = ModuleOrErr.getError()) {
OpenPOWER on IntegriCloud