[PATCH] D140741: [llvm-profdata] Remove unnecessary file size check

William Junda Huang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 3 11:25:02 PST 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rG07107f339058: [llvm-profdata] Remove unnecessary file size check (authored by huangjd).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D140741/new/

https://reviews.llvm.org/D140741

Files:
  llvm/lib/ProfileData/SampleProfReader.cpp


Index: llvm/lib/ProfileData/SampleProfReader.cpp
===================================================================
--- llvm/lib/ProfileData/SampleProfReader.cpp
+++ llvm/lib/ProfileData/SampleProfReader.cpp
@@ -1837,10 +1837,6 @@
     return EC;
   auto Buffer = std::move(BufferOrErr.get());
 
-  // Check the file.
-  if (uint64_t(Buffer->getBufferSize()) > std::numeric_limits<uint32_t>::max())
-    return sampleprof_error::too_large;
-
   return std::move(Buffer);
 }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140741.486037.patch
Type: text/x-patch
Size: 477 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230103/12cfbedb/attachment.bin>


More information about the llvm-commits mailing list