diff options
author | Davide Italiano <davide@freebsd.org> | 2015-10-01 01:02:37 +0000 |
---|---|---|
committer | Davide Italiano <davide@freebsd.org> | 2015-10-01 01:02:37 +0000 |
commit | c50ae365091cd82dc2e808986ca121848e92f1ed (patch) | |
tree | f002de4432c31d7580093686d31a8555d9e444f9 /llvm/tools/llvm-objdump/llvm-objdump.cpp | |
parent | 1f24ea15d06977c2e743a79d14312d8c3b1f3a31 (diff) | |
download | bcm5719-llvm-c50ae365091cd82dc2e808986ca121848e92f1ed.tar.gz bcm5719-llvm-c50ae365091cd82dc2e808986ca121848e92f1ed.zip |
[llvm-objdump] Fix time of check to time of use bug.
There's already a test that covers this situation, so we should be
fine.
llvm-svn: 248976
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
-rw-r--r-- | llvm/tools/llvm-objdump/llvm-objdump.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/tools/llvm-objdump/llvm-objdump.cpp b/llvm/tools/llvm-objdump/llvm-objdump.cpp index e9f96cbd872..09b6d8f3af7 100644 --- a/llvm/tools/llvm-objdump/llvm-objdump.cpp +++ b/llvm/tools/llvm-objdump/llvm-objdump.cpp @@ -1501,9 +1501,6 @@ static void DumpArchive(const Archive *a) { /// @brief Open file and figure out how to dump it. static void DumpInput(StringRef file) { - // If file isn't stdin, check that it exists. - if (file != "-" && !sys::fs::exists(file)) - report_error(file, errc::no_such_file_or_directory); // If we are using the Mach-O specific object file parser, then let it parse // the file and process the command line options. So the -arch flags can |