Remove silly left over from the Windows resize_file implementation.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 12 Dec 2014 18:37:43 +0000 (18:37 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 12 Dec 2014 18:37:43 +0000 (18:37 +0000)
I didn't notice the problem first because on a non debug build the CRT was
just exiting the process without any message.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224139 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/Windows/Path.inc

index 05c0986d049580664f0c31d3d4c6356055fe11ff..c74033dcb6b56018b9bcddf7cbe3d14d8001e35f 100644 (file)
@@ -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());
 }