[lld][MachO] Clean up some unnecessarily verbose code. NFC.

Suggested by Dave Blaikie in review of r265447. Thanks Dave!

llvm-svn: 265566
This commit is contained in:
Lang Hames 2016-04-06 17:18:55 +00:00
parent 4c85bdb701
commit 33fd854584

View File

@ -790,10 +790,7 @@ bool MachOYamlIOTaggedDocumentHandler::handledDocTag(llvm::yaml::IO &io,
return false; return false;
} }
info->_normalizeMachOFile = nullptr; info->_normalizeMachOFile = nullptr;
file = fileOrError->release();
// Transfer ownership to "out" File parameter.
std::unique_ptr<lld::File> f = std::move(*fileOrError);
file = f.release();
return true; return true;
} }