[llvm] r185695 - Use simpler version of exists.
Rafael Espindola
rafael.espindola at gmail.com
Fri Jul 5 05:44:49 PDT 2013
Author: rafael
Date: Fri Jul 5 07:44:49 2013
New Revision: 185695
URL: http://llvm.org/viewvc/llvm-project?rev=185695&view=rev
Log:
Use simpler version of exists.
Modified:
llvm/trunk/tools/llvm-ar/llvm-ar.cpp
Modified: llvm/trunk/tools/llvm-ar/llvm-ar.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-ar/llvm-ar.cpp?rev=185695&r1=185694&r2=185695&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-ar/llvm-ar.cpp (original)
+++ llvm/trunk/tools/llvm-ar/llvm-ar.cpp Fri Jul 5 07:44:49 2013
@@ -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";
More information about the llvm-commits
mailing list