mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-07 14:33:15 +00:00
Use simpler version of exists.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185695 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3d4427347e
commit
ef2703a1fb
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user