mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-09 05:47:13 +00:00
Avoid a useless temporary constrution.
llvm-svn: 35747
This commit is contained in:
parent
aad3d1f6c8
commit
fb17dbb809
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user