Avoid a useless temporary constrution.

llvm-svn: 35747
This commit is contained in:
Reid Spencer 2007-04-07 19:51:45 +00:00
parent aad3d1f6c8
commit fb17dbb809

View 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