summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/RuntimeDyld
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-07-31 03:12:45 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-07-31 03:12:45 +0000
commit437b0d588703adbfb01e7c77ec8f40d85ddd573b (patch)
treef7e01d94b89564ba63da611328bf9fd32f0465a8 /llvm/lib/ExecutionEngine/RuntimeDyld
parentdb9552f4a4ca7cd8edf786037b2db948dfac1b1e (diff)
downloadbcm5719-llvm-437b0d588703adbfb01e7c77ec8f40d85ddd573b.tar.gz
bcm5719-llvm-437b0d588703adbfb01e7c77ec8f40d85ddd573b.zip
Use std::unique_ptr to make the ownership explicit.
llvm-svn: 214377
Diffstat (limited to 'llvm/lib/ExecutionEngine/RuntimeDyld')
-rw-r--r--llvm/lib/ExecutionEngine/RuntimeDyld/ObjectImageCommon.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/RuntimeDyld/ObjectImageCommon.h b/llvm/lib/ExecutionEngine/RuntimeDyld/ObjectImageCommon.h
index c3a21823bbc..51e39e32e7a 100644
--- a/llvm/lib/ExecutionEngine/RuntimeDyld/ObjectImageCommon.h
+++ b/llvm/lib/ExecutionEngine/RuntimeDyld/ObjectImageCommon.h
@@ -49,7 +49,7 @@ public:
// FIXME: error checking? createObjectFile returns an ErrorOr<ObjectFile*>
// and should probably be checked for failure.
std::unique_ptr<MemoryBuffer> Buf(Buffer->getMemBuffer());
- ObjFile.reset(object::ObjectFile::createObjectFile(Buf).get());
+ ObjFile = std::move(object::ObjectFile::createObjectFile(Buf).get());
}
ObjectImageCommon(std::unique_ptr<object::ObjectFile> Input)
: ObjectImage(nullptr), ObjFile(std::move(Input)) {}
OpenPOWER on IntegriCloud