From: Davide Italiano Date: Thu, 1 Oct 2015 01:02:37 +0000 (+0000) Subject: [llvm-objdump] Fix time of check to time of use bug. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8902508581e8baf6840fe9e6515b662ca897fea4;p=oota-llvm.git [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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@248976 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/llvm-objdump/llvm-objdump.cpp b/tools/llvm-objdump/llvm-objdump.cpp index e9f96cbd872..09b6d8f3af7 100644 --- a/tools/llvm-objdump/llvm-objdump.cpp +++ b/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