[llvm] r224139 - Remove silly left over from the Windows resize_file implementation.

Rafael Espindola rafael.espindola at gmail.com
Fri Dec 12 10:37:43 PST 2014


Author: rafael
Date: Fri Dec 12 12:37:43 2014
New Revision: 224139

URL: http://llvm.org/viewvc/llvm-project?rev=224139&view=rev
Log:
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.

Modified:
    llvm/trunk/lib/Support/Windows/Path.inc

Modified: llvm/trunk/lib/Support/Windows/Path.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Windows/Path.inc?rev=224139&r1=224138&r2=224139&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Windows/Path.inc (original)
+++ llvm/trunk/lib/Support/Windows/Path.inc Fri Dec 12 12:37:43 2014
@@ -278,7 +278,6 @@ std::error_code resize_file(int FD, uint
 #else
   errno_t error = ::_chsize(FD, Size);
 #endif
-  ::close(FD);
   return std::error_code(error, std::generic_category());
 }
 





More information about the llvm-commits mailing list