fix PR3488: llvm-ar r doesn't replace existing files

Patch by Daniel Shelton!

llvm-svn: 63870
This commit is contained in:
Chris Lattner 2009-02-05 17:58:39 +00:00
parent cc41c07227
commit 413a0246f8
1 changed files with 1 additions and 1 deletions

View File

@ -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())