summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/IRObjectFile.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/Object/IRObjectFile.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/Object/IRObjectFile.cpp')
-rw-r--r--llvm/lib/Object/IRObjectFile.cpp2
1 files changed, 1 insertions, 1 deletions
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<MemoryBuffer> Buff(MemoryBuffer::getMemBuffer(Object, false));
- ErrorOr<Module *> MOrErr = getLazyBitcodeModule(Buff, Context);
+ ErrorOr<Module *> MOrErr = getLazyBitcodeModule(std::move(Buff), Context);
if (std::error_code EC = MOrErr.getError())
return EC;
OpenPOWER on IntegriCloud