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