From: Rafael Espindola Date: Fri, 12 Dec 2014 18:37:43 +0000 (+0000) Subject: Remove silly left over from the Windows resize_file implementation. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=879b54621e8491a5fd45656705133c5663586997;p=llvm Remove silly left over from the Windows resize_file implementation. 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 --- 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()); }