Avoid a useless temporary constrution.
authorReid Spencer <rspencer@reidspencer.com>
Sat, 7 Apr 2007 19:51:45 +0000 (19:51 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sat, 7 Apr 2007 19:51:45 +0000 (19:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35747 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Archive/Archive.cpp
lib/Bytecode/Archive/Archive.cpp

index 7fbd15e59fcb11f11109a12ca62adbd24d69a50f..d594a8715f7a4de6d589076f67d1f75167a405ae 100644 (file)
@@ -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
index 7fbd15e59fcb11f11109a12ca62adbd24d69a50f..d594a8715f7a4de6d589076f67d1f75167a405ae 100644 (file)
@@ -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