diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-04-07 19:45:30 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-04-07 19:45:30 +0000 |
commit | 44218f9a7e328a0428ffb16f24b567328528122d (patch) | |
tree | a4e025b3257c5394335a9b4416563f802f9c4bf4 /lib/Bytecode | |
parent | c74b4615071151b20fb1f82b11f85c2a1ba53e75 (diff) |
Fix another PathWithStatus issue.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35744 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode')
-rw-r--r-- | lib/Bytecode/Archive/Archive.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Bytecode/Archive/Archive.cpp b/lib/Bytecode/Archive/Archive.cpp index d594a8715f..7fbd15e59f 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 |