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:
3d44273
)
Use simpler version of exists.
author
Rafael Espindola
<rafael.espindola@gmail.com>
Fri, 5 Jul 2013 12:44:49 +0000
(12:44 +0000)
committer
Rafael Espindola
<rafael.espindola@gmail.com>
Fri, 5 Jul 2013 12:44:49 +0000
(12:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185695
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 50de10bcfe5a6fba71f80d03d4c149d60287d550..537071549102e74b5d91b45c7c55b0931ce061ff 100644
(file)
--- a/
tools/llvm-ar/llvm-ar.cpp
+++ b/
tools/llvm-ar/llvm-ar.cpp
@@
-665,8
+665,7
@@
int main(int argc, char **argv) {
ArchiveOperation Operation = parseCommandLine();
// Create or open the archive object.
- bool Exists;
- if (llvm::sys::fs::exists(ArchiveName, Exists) || !Exists) {
+ if (!llvm::sys::fs::exists(ArchiveName)) {
// Produce a warning if we should and we're creating the archive
if (!Create)
errs() << argv[0] << ": creating " << ArchiveName << "\n";