projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a2e7e5
)
fix PR3488: llvm-ar r doesn't replace existing files
author
Chris Lattner
<sabre@nondot.org>
Thu, 5 Feb 2009 17:58:39 +0000
(17:58 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Thu, 5 Feb 2009 17:58:39 +0000
(17:58 +0000)
Patch by Daniel Shelton!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63870
91177308
-0d34-0410-b5e6-
96231b3b80d8
tools/llvm-ar/llvm-ar.cpp
patch
|
blob
|
history
diff --git
a/tools/llvm-ar/llvm-ar.cpp
b/tools/llvm-ar/llvm-ar.cpp
index a6611a3e8091c75ef36c11cc3b92f5fe8bf5d466..766d91cbd9c418aae6b574e5ef4d21c26a7bf056 100644
(file)
--- 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())