aboutsummaryrefslogtreecommitdiff
path: root/lib/Archive
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-04-07 19:51:45 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-04-07 19:51:45 +0000
commita021d5d81ad4f9053e130bc443447adc0b619e2f (patch)
tree2ae7b6efe3cf73605c26145633f25666b6292a65 /lib/Archive
parentbe5dcf5c1e21a1d8041d7c7f9424123dbd664d3c (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.cpp3
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