1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00

Remove unnecessary use of unique_ptr::release() used to construct another unique_ptr.

llvm-svn: 213556
This commit is contained in:
David Blaikie 2014-07-21 16:23:21 +00:00
parent 2460558b2a
commit 46e7aadbb6

View File

@ -181,8 +181,7 @@ Archive::Child::getAsBinary(LLVMContext *Context) const {
if (std::error_code EC = BuffOrErr.getError())
return EC;
std::unique_ptr<MemoryBuffer> Buff(BuffOrErr.get().release());
return createBinary(Buff, Context);
return createBinary(*BuffOrErr, Context);
}
ErrorOr<Archive *> Archive::create(std::unique_ptr<MemoryBuffer> Source) {