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:
parent
2460558b2a
commit
46e7aadbb6
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user