summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bytecode/Archive/Archive.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-04-07 19:51:45 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-04-07 19:51:45 +0000
commit2d6db76bdaf30014c281948ba953f4f7b60881e0 (patch)
treebfe0bd7157f4309a4a3033cba466e12443710768 /llvm/lib/Bytecode/Archive/Archive.cpp
parent43340fee012416342a503be42b15566768ecb62c (diff)
downloadbcm5719-llvm-2d6db76bdaf30014c281948ba953f4f7b60881e0.tar.gz
bcm5719-llvm-2d6db76bdaf30014c281948ba953f4f7b60881e0.zip
Avoid a useless temporary constrution.
llvm-svn: 35747
Diffstat (limited to 'llvm/lib/Bytecode/Archive/Archive.cpp')
-rw-r--r--llvm/lib/Bytecode/Archive/Archive.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Bytecode/Archive/Archive.cpp b/llvm/lib/Bytecode/Archive/Archive.cpp
index 7fbd15e59fc..d594a8715f7 100644
--- a/llvm/lib/Bytecode/Archive/Archive.cpp
+++ b/llvm/lib/Bytecode/Archive/Archive.cpp
@@ -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
OpenPOWER on IntegriCloud