[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;
}
info->_normalizeMachOFile = nullptr;
// Transfer ownership to "out" File parameter.
std::unique_ptr<lld::File> f = std::move(*fileOrError);
file = f.release();
file = fileOrError->release();
return true;
}