diff options
Diffstat (limited to 'contrib/llvm-project/compiler-rt/lib/fuzzer/FuzzerIOWindows.cpp')
| -rw-r--r-- | contrib/llvm-project/compiler-rt/lib/fuzzer/FuzzerIOWindows.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/contrib/llvm-project/compiler-rt/lib/fuzzer/FuzzerIOWindows.cpp b/contrib/llvm-project/compiler-rt/lib/fuzzer/FuzzerIOWindows.cpp index 510afebef738..56757aa09a37 100644 --- a/contrib/llvm-project/compiler-rt/lib/fuzzer/FuzzerIOWindows.cpp +++ b/contrib/llvm-project/compiler-rt/lib/fuzzer/FuzzerIOWindows.cpp @@ -223,14 +223,6 @@ void RenameFile(const std::string &OldPath, const std::string &NewPath) { rename(OldPath.c_str(), NewPath.c_str()); } -void DiscardOutput(int Fd) { - FILE* Temp = fopen("nul", "w"); - if (!Temp) - return; - _dup2(_fileno(Temp), Fd); - fclose(Temp); -} - intptr_t GetHandleFromFd(int fd) { return _get_osfhandle(fd); } |
