diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-05 12:44:49 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-05 12:44:49 +0000 |
commit | 0910ff2cb98ed18320907a8a880ad12d1699801b (patch) | |
tree | a0b4af4ee4622935c31ada051dbb1ffa2e2ef065 /llvm/tools/llvm-ar/llvm-ar.cpp | |
parent | 5abd12fc32674675cfe71a46746202df6d60671c (diff) | |
download | bcm5719-llvm-0910ff2cb98ed18320907a8a880ad12d1699801b.tar.gz bcm5719-llvm-0910ff2cb98ed18320907a8a880ad12d1699801b.zip |
Use simpler version of exists.
llvm-svn: 185695
Diffstat (limited to 'llvm/tools/llvm-ar/llvm-ar.cpp')
-rw-r--r-- | llvm/tools/llvm-ar/llvm-ar.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/tools/llvm-ar/llvm-ar.cpp b/llvm/tools/llvm-ar/llvm-ar.cpp index 50de10bcfe5..53707154910 100644 --- a/llvm/tools/llvm-ar/llvm-ar.cpp +++ b/llvm/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"; |