diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-04-07 19:51:45 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-04-07 19:51:45 +0000 |
commit | a021d5d81ad4f9053e130bc443447adc0b619e2f (patch) | |
tree | 2ae7b6efe3cf73605c26145633f25666b6292a65 /lib/Archive | |
parent | be5dcf5c1e21a1d8041d7c7f9424123dbd664d3c (diff) |
Avoid a useless temporary constrution.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35747 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Archive')
-rw-r--r-- | lib/Archive/Archive.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Archive/Archive.cpp b/lib/Archive/Archive.cpp index 7fbd15e59f..d594a8715f 100644 --- a/lib/Archive/Archive.cpp +++ b/lib/Archive/Archive.cpp @@ -116,8 +116,7 @@ bool ArchiveMember::replaceWith(const sys::Path& newFile, std::string* ErrMsg) { path.getMagicNumber(magic,4); signature = magic.c_str(); std::string err; - const sys::FileStatus *FSinfo = - sys::PathWithStatus(path).getFileStatus(false, ErrMsg); + const sys::FileStatus *FSinfo = path.getFileStatus(false, ErrMsg); if (FSinfo) info = *FSinfo; else |