diff options
author | Chris Lattner <sabre@nondot.org> | 2009-02-05 17:58:39 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-02-05 17:58:39 +0000 |
commit | 7d8f9b6133898fcd0c51729b98bc9841ad9b55fe (patch) | |
tree | 2530c51d987fc4dc8ddbe63e56524fd13d85d1ff /tools/llvm-ar | |
parent | 7a2e7e5c2054cac76dc80c23b68a294aebf34259 (diff) | |
download | external_llvm-7d8f9b6133898fcd0c51729b98bc9841ad9b55fe.zip external_llvm-7d8f9b6133898fcd0c51729b98bc9841ad9b55fe.tar.gz external_llvm-7d8f9b6133898fcd0c51729b98bc9841ad9b55fe.tar.bz2 |
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
Diffstat (limited to 'tools/llvm-ar')
-rw-r--r-- | tools/llvm-ar/llvm-ar.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/llvm-ar/llvm-ar.cpp b/tools/llvm-ar/llvm-ar.cpp index a6611a3..766d91c 100644 --- a/tools/llvm-ar/llvm-ar.cpp +++ b/tools/llvm-ar/llvm-ar.cpp @@ -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()) |