[PATCH] D110585: [Analysis][SimplifyLibCalls] Refactor code related to size_t in lib func signatures. NFC

Bjorn Pettersson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 3 03:05:34 PDT 2022


bjope marked an inline comment as done.
bjope added inline comments.


================
Comment at: llvm/include/llvm/Analysis/TargetLibraryInfo.h:196
 
+  /// Returns the size of the size_t type in bits or 0 if the size is unknown.
+  unsigned getSizeTSize(const Module &M) const;
----------------
nikic wrote:
> Drop "or 0 is the size is unknown". This size must be known.
Yes, makes sense to drop that. (It was a copy-paste from getWCharSize above, but that one depends on metadata afaik.)


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D110585



More information about the llvm-commits mailing list