mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-02 08:26:29 +00:00
[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
This commit is contained in:
parent
0c7821b2aa
commit
ad0e625988
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user