From 44218f9a7e328a0428ffb16f24b567328528122d Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Sat, 7 Apr 2007 19:45:30 +0000 Subject: [PATCH] Fix another PathWithStatus issue. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35744 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Archive/Archive.cpp | 3 ++- lib/Bytecode/Archive/Archive.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/Archive/Archive.cpp b/lib/Archive/Archive.cpp index d594a8715f7..7fbd15e59fc 100644 --- a/lib/Archive/Archive.cpp +++ b/lib/Archive/Archive.cpp @@ -116,7 +116,8 @@ 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 = path.getFileStatus(false, ErrMsg); + const sys::FileStatus *FSinfo = + sys::PathWithStatus(path).getFileStatus(false, ErrMsg); if (FSinfo) info = *FSinfo; else diff --git a/lib/Bytecode/Archive/Archive.cpp b/lib/Bytecode/Archive/Archive.cpp index d594a8715f7..7fbd15e59fc 100644 --- a/lib/Bytecode/Archive/Archive.cpp +++ b/lib/Bytecode/Archive/Archive.cpp @@ -116,7 +116,8 @@ 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 = path.getFileStatus(false, ErrMsg); + const sys::FileStatus *FSinfo = + sys::PathWithStatus(path).getFileStatus(false, ErrMsg); if (FSinfo) info = *FSinfo; else -- 2.34.1