diff --git a/lib/Support/Windows/Path.inc b/lib/Support/Windows/Path.inc index 05c0986d049..c74033dcb6b 100644 --- a/lib/Support/Windows/Path.inc +++ b/lib/Support/Windows/Path.inc @@ -278,7 +278,6 @@ std::error_code resize_file(int FD, uint64_t Size) { #else errno_t error = ::_chsize(FD, Size); #endif - ::close(FD); return std::error_code(error, std::generic_category()); }