llvm.org GIT mirror llvm / 7d8f9b6
fix PR3488: llvm-ar r doesn't replace existing files Patch by Daniel Shelton! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63870 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 10 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
637637 const sys::FileStatus *si = PwS.getFileStatus(false, &Err);
638638 if (!si)
639639 return true;
640 if (si->isDir) {
640 if (!si->isDir) {
641641 if (OnlyUpdate) {
642642 // Replace the item only if it is newer.
643643 if (si->modTime > I->getModTime())