forked from OSchip/llvm-project
fix PR3488: llvm-ar r doesn't replace existing files
Patch by Daniel Shelton! llvm-svn: 63870
This commit is contained in:
parent
cc41c07227
commit
413a0246f8
|
@ -638,7 +638,7 @@ doReplaceOrInsert(std::string* ErrMsg) {
|
|||
const sys::FileStatus *si = PwS.getFileStatus(false, &Err);
|
||||
if (!si)
|
||||
return true;
|
||||
if (si->isDir) {
|
||||
if (!si->isDir) {
|
||||
if (OnlyUpdate) {
|
||||
// Replace the item only if it is newer.
|
||||
if (si->modTime > I->getModTime())
|
||||
|
|
Loading…
Reference in New Issue