[PATCH] D39263: [support] remove tautological comparison in Support/Windows/Path.inc

Bob Haarman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 27 16:41:51 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL316814: [support] remove tautological comparison in Support/Windows/Path.inc (authored by inglorion).

Changed prior to commit:
  https://reviews.llvm.org/D39263?vs=120150&id=120718#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D39263

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


Index: llvm/trunk/lib/Support/Windows/Path.inc
===================================================================
--- llvm/trunk/lib/Support/Windows/Path.inc
+++ llvm/trunk/lib/Support/Windows/Path.inc
@@ -721,10 +721,6 @@
 
 std::error_code mapped_file_region::init(int FD, uint64_t Offset,
                                          mapmode Mode) {
-  // Make sure that the requested size fits within SIZE_T.
-  if (Size > std::numeric_limits<SIZE_T>::max())
-    return make_error_code(errc::invalid_argument);
-
   HANDLE FileHandle = reinterpret_cast<HANDLE>(_get_osfhandle(FD));
   if (FileHandle == INVALID_HANDLE_VALUE)
     return make_error_code(errc::bad_file_descriptor);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39263.120718.patch
Type: text/x-patch
Size: 684 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171027/3245b63f/attachment.bin>


More information about the llvm-commits mailing list