Simplify. NFC.

llvm-svn: 268326
This commit is contained in:
Rafael Espindola 2016-05-02 22:53:32 +00:00
parent 7301d39401
commit 9268a5d552
1 changed files with 1 additions and 4 deletions

View File

@ -343,12 +343,9 @@ static void doDisplayTable(StringRef Name, const object::Archive::Child &C) {
static void doExtract(StringRef Name, const object::Archive::Child &C) {
// Retain the original mode.
sys::fs::perms Mode = C.getAccessMode();
SmallString<128> Storage = Name;
int FD;
failIfError(
sys::fs::openFileForWrite(Storage.c_str(), FD, sys::fs::F_None, Mode),
Storage.c_str());
failIfError(sys::fs::openFileForWrite(Name, FD, sys::fs::F_None, Mode), Name);
{
raw_fd_ostream file(FD, false);